mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-24 05:51:48 +02:00
Add a Clear button to empty the Import view when all is imported
This commit is contained in:
parent
5c35f815ba
commit
f867bd3fc5
@ -108,6 +108,9 @@
|
||||
<button v-if="duplicateCount" @click="discardDuplicates()" class="has-text-grey button is-small is-ghost">{{ $t('twofaccounts.import.discard_duplicates') }} ({{duplicateCount}})</button>
|
||||
<button @click="discardAccounts()" class="has-text-grey button is-small is-ghost">{{ $t('twofaccounts.import.discard_all') }}</button>
|
||||
</div>
|
||||
<div v-if="importedCount == exportedAccounts.length" class="mt-2 is-size-7 is-pulled-right">
|
||||
<button @click="exportedAccounts = []" class="has-text-grey button is-small is-ghost">{{ $t('commons.clear') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="isFetching && exportedAccounts.length === 0" class="has-text-centered">
|
||||
<span class="is-size-4">
|
||||
@ -177,6 +180,10 @@
|
||||
duplicateCount() {
|
||||
return this.exportedAccounts.filter(account => account.id === -1 && account.imported === -1).length;
|
||||
},
|
||||
|
||||
importedCount() {
|
||||
return this.exportedAccounts.filter(account => account.imported === 1).length;
|
||||
}
|
||||
},
|
||||
|
||||
mounted: async function() {
|
||||
|
@ -26,6 +26,7 @@ return [
|
||||
'create' => 'Create',
|
||||
'save' => 'Save',
|
||||
'close' => 'Close',
|
||||
'clear' => 'Clear',
|
||||
'demo_do_not_post_sensitive_data' => 'This is a demo app, do not post any sensitive data',
|
||||
'testing_do_not_post_sensitive_data' => 'This is a testing app, do not post any sensitive data',
|
||||
'selected' => 'selected',
|
||||
|
Loading…
x
Reference in New Issue
Block a user