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> <template>
<div> <div>
<div class="container"> <div class="container" v-if="this.accounts.length > 0">
<div class="buttons are-large is-centered"> <div class="buttons are-large is-centered">
<span v-for="account in accounts" class="button is-black twofaccount" > <span v-for="account in accounts" class="button is-black twofaccount" >
<span @click.stop="getAccount(account.id)"> <span @click.stop="getAccount(account.id)">
@ -19,6 +19,12 @@
</span> </span>
</div> </div>
</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"> <modal v-model="ShowTwofaccountInModal">
<twofaccount-show <twofaccount-show
:twofaccountid='twofaccount.id' :twofaccountid='twofaccount.id'
@ -107,10 +113,12 @@
}) })
}) })
// stop OTP generation on modal close
this.$on('modalClose', function() { this.$on('modalClose', function() {
console.log('modalClose triggered') console.log('modalClose triggered')
this.$refs.OneTimePassword.clearOTP() this.$refs.OneTimePassword.clearOTP()
}); });
}, },
components: { components: {