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