Add some options to the Start component

This commit is contained in:
Bubka 2022-06-20 17:49:46 +02:00
parent c20e5f79ef
commit b56ad6737b

View File

@ -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 => {