Fix account loading when requesting an OTD

This commit is contained in:
Bubka
2020-01-23 17:07:05 +01:00
parent 326866e1c7
commit 7fca9cdf3c
2 changed files with 16 additions and 10 deletions

View File

@@ -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