mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 16:23:18 +01:00
Add some options to the Start component
This commit is contained in:
parent
c20e5f79ef
commit
b56ad6737b
@ -32,7 +32,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<!-- link to advanced form -->
|
||||
<div class="block has-text-link">
|
||||
<div v-if="showAdvancedFormButton" class="block has-text-link">
|
||||
<router-link class="button is-link is-outlined is-rounded" :to="{ name: 'createAccount' }" >
|
||||
{{ $t('twofaccounts.forms.use_advanced_form') }}
|
||||
</router-link>
|
||||
@ -43,7 +43,7 @@
|
||||
<vue-footer :showButtons="true" >
|
||||
<!-- back button -->
|
||||
<p class="control" v-if="accountCount > 0">
|
||||
<router-link class="button is-dark is-rounded" :to="{ name: 'accounts' }" >
|
||||
<router-link class="button is-dark is-rounded" :to="{ name: returnToView }" >
|
||||
{{ $t('commons.back') }}
|
||||
</router-link>
|
||||
</p>
|
||||
@ -77,6 +77,17 @@
|
||||
}
|
||||
},
|
||||
|
||||
props: {
|
||||
showAdvancedFormButton: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
returnToView: {
|
||||
type: String,
|
||||
default: 'accounts'
|
||||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
||||
this.axios.get('api/v1/twofaccounts/count').then(response => {
|
||||
|
Loading…
Reference in New Issue
Block a user