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