Skip to content

Commit

Permalink
fix(file settings): get rid of Unnecessary 2FA UI message
Browse files Browse the repository at this point in the history
- added an if condition for the message rendering

Signed-off-by: JEEEEEEEEEEEEEEEEEEEEEED <118366366+jadjoud@users.noreply.github.com>
  • Loading branch information
jadjoud committed Apr 1, 2024
1 parent 61f2453 commit cef1f22
Showing 1 changed file with 9 additions and 5 deletions.
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">
<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

0 comments on commit cef1f22

Please sign in to comment.