Basic no account prompt on index

This commit is contained in:
Bubka 2020-01-07 17:05:13 +01:00
parent 3a0bf1a596
commit b0be61e106

View File

@ -1,6 +1,6 @@
<template>
<div>
<div class="container">
<div class="container" v-if="this.accounts.length > 0">
<div class="buttons are-large is-centered">
<span v-for="account in accounts" class="button is-black twofaccount" >
<span @click.stop="getAccount(account.id)">
@ -19,6 +19,12 @@
</span>
</div>
</div>
<div class="container" v-else>
<figure class="image is-128x128">
<img src="https://bulma.io/images/placeholders/128x128.png">
</figure>
No account here! <router-link :to="{ name: 'create' }" class="is-link">create one</router-link>
</div>
<modal v-model="ShowTwofaccountInModal">
<twofaccount-show
:twofaccountid='twofaccount.id'
@ -107,10 +113,12 @@
})
})
// stop OTP generation on modal close
this.$on('modalClose', function() {
console.log('modalClose triggered')
this.$refs.OneTimePassword.clearOTP()
});
},
components: {