mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-27 05:14:18 +02:00
Fix account loading when requesting an OTD
This commit is contained in:
@@ -138,9 +138,14 @@
|
||||
|
||||
methods: {
|
||||
async showAccount(id) {
|
||||
|
||||
this.$refs.TwofaccountShow.twofaccountid = id
|
||||
await this.$refs.TwofaccountShow.getAccount()
|
||||
|
||||
if( id ) {
|
||||
await this.$refs.TwofaccountShow.getAccount(id)
|
||||
}
|
||||
else {
|
||||
let err = new Error("Id missing")
|
||||
this.$router.push({ name: 'genericError', params: { err: err } });
|
||||
}
|
||||
|
||||
this.ShowTwofaccountInModal = true
|
||||
|
||||
|
Reference in New Issue
Block a user