Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions apps/files/src/views/Settings.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!--
- @copyright Copyright (c) 2023 John Molakvoæ <skjnldsv@protonmail.com>
- @copyright Copyright (c) 2024 Jed Boulahya <jed.boulahya@medtech.tn>
-
- @author John Molakvoæ <skjnldsv@protonmail.com>
-
Expand Down Expand Up @@ -88,11 +89,14 @@
</a>
</em>
<br>
<em>
<a class="setting-link" :href="appPasswordUrl">
{{ t('files', 'If you have enabled 2FA, you must create and use a new app password by clicking here.') }} ↗
</a>
</em>
<!-- Conditional rendering based on 2FA -->
<template v-if="isTwoFactorEnabled">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable doesn't exist?
You need to check of we have a capability for it or else inject the variables from the Controller yourself :)

<em>
<a class="setting-link" :href="appPasswordUrl">
{{ t('files', 'If you have enabled 2FA, you must create and use a new app password by clicking here.') }} ↗
</a>
</em>
</template>
</NcAppSettingsSection>
</NcAppSettingsDialog>
</template>
Expand Down