|
1 | 1 | <template> |
2 | 2 | <div> |
3 | | - <div class="text warning" v-if="!encryption.getEncryptionStatus()"> |
4 | | - {{ i18n.export_info }} |
| 3 | + <div v-show="!exportDisabled"> |
| 4 | + <div class="text warning" v-if="!encryption.getEncryptionStatus()"> |
| 5 | + {{ i18n.export_info }} |
| 6 | + </div> |
| 7 | + <div class="text warning" v-if="unsupportedAccounts"> |
| 8 | + {{ i18n.otp_unsupported_warn }} |
| 9 | + </div> |
| 10 | + <a |
| 11 | + download="authenticator.txt" |
| 12 | + v-bind:href="exportOneLineOtpAuthFile" |
| 13 | + v-if="!unsupportedAccounts" |
| 14 | + class="button" |
| 15 | + target="_blank" |
| 16 | + >{{ i18n.download_backup }}</a |
| 17 | + > |
| 18 | + <a |
| 19 | + download="authenticator.json" |
| 20 | + v-bind:href="exportFile" |
| 21 | + class="button" |
| 22 | + target="_blank" |
| 23 | + v-else |
| 24 | + >{{ i18n.download_backup }}</a |
| 25 | + > |
| 26 | + <a |
| 27 | + download="authenticator.json" |
| 28 | + v-bind:href="exportEncryptedFile" |
| 29 | + v-if="encryption.getEncryptionStatus()" |
| 30 | + class="button" |
| 31 | + target="_blank" |
| 32 | + >{{ i18n.download_enc_backup }}</a |
| 33 | + > |
5 | 34 | </div> |
6 | | - <div class="text warning" v-if="unsupportedAccounts"> |
7 | | - {{ i18n.otp_unsupported_warn }} |
8 | | - </div> |
9 | | - <a |
10 | | - download="authenticator.txt" |
11 | | - v-bind:href="exportOneLineOtpAuthFile" |
12 | | - v-if="!unsupportedAccounts" |
13 | | - class="button" |
14 | | - target="_blank" |
15 | | - >{{ i18n.download_backup }}</a |
16 | | - > |
17 | | - <a |
18 | | - download="authenticator.json" |
19 | | - v-bind:href="exportFile" |
20 | | - class="button" |
21 | | - target="_blank" |
22 | | - v-else |
23 | | - >{{ i18n.download_backup }}</a |
24 | | - > |
25 | | - <a |
26 | | - download="authenticator.json" |
27 | | - v-bind:href="exportEncryptedFile" |
28 | | - v-if="encryption.getEncryptionStatus()" |
29 | | - class="button" |
30 | | - target="_blank" |
31 | | - >{{ i18n.download_enc_backup }}</a |
32 | | - > |
33 | 35 | <a class="button" href="import.html" target="_blank">{{ |
34 | 36 | i18n.import_backup |
35 | 37 | }}</a> |
@@ -57,6 +59,9 @@ export default Vue.extend({ |
57 | 59 | computed: { |
58 | 60 | encryption: function() { |
59 | 61 | return this.$store.state.accounts.encryption; |
| 62 | + }, |
| 63 | + exportDisabled: function() { |
| 64 | + return this.$store.state.menu.exportDisabled; |
60 | 65 | } |
61 | 66 | } |
62 | 67 | }); |
|
0 commit comments