|
20 | 20 | v-if="!unsupportedAccounts & isDataLinkSupported" |
21 | 21 | >{{ i18n.download_backup }}</a-button-link |
22 | 22 | > |
23 | | - <button v-on:click="downloadBackUpOneLineOtpAuthFile()" v-if="!unsupportedAccounts & !isDataLinkSupported" class="button"> |
24 | | - {{ i18n.download_backup }} |
| 23 | + <button |
| 24 | + v-on:click="downloadBackUpOneLineOtpAuthFile()" |
| 25 | + v-if="!unsupportedAccounts & !isDataLinkSupported" |
| 26 | + class="button" |
| 27 | + > |
| 28 | + {{ i18n.download_backup }} |
| 29 | + </button> |
| 30 | + <a-button-link |
| 31 | + download="authenticator.json" |
| 32 | + :href="exportFile" |
| 33 | + v-if="unsupportedAccounts & isDataLinkSupported" |
| 34 | + >{{ i18n.download_backup }}</a-button-link |
| 35 | + > |
| 36 | + <button |
| 37 | + v-on:click="downloadBackUpExportFile()" |
| 38 | + v-if="unsupportedAccounts & !isDataLinkSupported" |
| 39 | + class="button" |
| 40 | + > |
| 41 | + {{ i18n.download_backup }} |
25 | 42 | </button> |
26 | | - <a-button-link download="authenticator.json" :href="exportFile" v-if="unsupportedAccounts & isDataLinkSupported">{{ |
27 | | - i18n.download_backup |
28 | | - }}</a-button-link> |
29 | | - <button v-on:click="downloadBackUpExportFile()" v-if="unsupportedAccounts & !isDataLinkSupported" class="button">{{ |
30 | | - i18n.download_backup |
31 | | - }}</button> |
32 | 43 | <a-button-link |
33 | 44 | download="authenticator.json" |
34 | 45 | :href="exportEncryptedFile" |
35 | 46 | v-if="encryption.getEncryptionStatus() & isDataLinkSupported" |
36 | 47 | >{{ i18n.download_enc_backup }}</a-button-link |
37 | 48 | > |
38 | | - <button v-on:click="downloadBackUpExportEncryptedFile()" v-if="encryption.getEncryptionStatus() & !isDataLinkSupported" class="button"> |
| 49 | + <button |
| 50 | + v-on:click="downloadBackUpExportEncryptedFile()" |
| 51 | + v-if="encryption.getEncryptionStatus() & !isDataLinkSupported" |
| 52 | + class="button" |
| 53 | + > |
39 | 54 | {{ i18n.download_enc_backup }} |
40 | 55 | </button> |
41 | 56 | </div> |
@@ -84,11 +99,11 @@ export default Vue.extend({ |
84 | 99 | return this.$store.getters["menu/storageArea"]; |
85 | 100 | }, |
86 | 101 | isDataLinkSupported: function () { |
87 | | - return !isSafari; |
| 102 | + return !isSafari; |
88 | 103 | }, |
89 | 104 | isBackupServiceSupported: function () { |
90 | 105 | return !isSafari; |
91 | | - } |
| 106 | + }, |
92 | 107 | }, |
93 | 108 | methods: { |
94 | 109 | showInfo(tab: string) { |
@@ -154,7 +169,7 @@ export default Vue.extend({ |
154 | 169 | const key = this.$store.state.accounts.key; |
155 | 170 | const t = getBackupFile(exportEncData, key); |
156 | 171 | window.open(t); |
157 | | - } |
| 172 | + }, |
158 | 173 | }, |
159 | 174 | }); |
160 | 175 |
|
|
0 commit comments