mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-22 22:30:05 +01:00
Basic no account prompt on index
This commit is contained in:
parent
3a0bf1a596
commit
b0be61e106
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user