From e36beaefd0c44d248bd924745df6d8219e5099e2 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Mon, 29 May 2023 11:39:10 +0200 Subject: [PATCH] Fix missing icon when creating a 2FA with a qrcode upload --- resources/js/views/twofaccounts/Create.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/js/views/twofaccounts/Create.vue b/resources/js/views/twofaccounts/Create.vue index 85321957..6ca8e71f 100644 --- a/resources/js/views/twofaccounts/Create.vue +++ b/resources/js/views/twofaccounts/Create.vue @@ -238,7 +238,9 @@ watch: { tempIcon: function(val) { if( this.showQuickForm ) { - this.$refs.QuickFormOtpDisplayer.internal_icon = val + this.$nextTick(() => { + this.$refs.QuickFormOtpDisplayer.internal_icon = val + }) } }, @@ -257,6 +259,9 @@ this.form.fill(response.data) this.tempIcon = response.data.icon ? response.data.icon : null this.showQuickForm = true + this.$nextTick(() => { + this.$refs.QuickFormOtpDisplayer.show() + }) }) .catch(error => { if( error.response.status === 422 ) { @@ -265,7 +270,7 @@ this.showAdvancedForm = true } } - }); + }) } else { this.showAdvancedForm = true }