Refactor and finalize the Import feature for G.Auth, Aegis & Plain Text

This commit is contained in:
Bubka
2022-10-07 18:58:48 +02:00
parent 1610cf3738
commit e79ae0a3ed
30 changed files with 1134 additions and 230 deletions

View File

@ -37,6 +37,12 @@
{{ $t('twofaccounts.forms.use_advanced_form') }}
</router-link>
</div>
<!-- link to import view -->
<div v-if="showImportButton" class="block has-text-link">
<router-link class="button is-link is-outlined is-rounded" :to="{ name: 'importAccounts' }" >
{{ $t('twofaccounts.import.import') }}
</router-link>
</div>
</div>
</div>
<!-- Footer -->
@ -74,6 +80,7 @@
return {
accountCount: null,
form: new Form(),
alternativeMethod: null,
}
},
@ -82,6 +89,10 @@
type: Boolean,
default: true
},
showImportButton: {
type: Boolean,
default: true
},
returnToView: {
type: String,
default: 'accounts'