mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-14 17:06:39 +02:00
Fix missing icon when creating a 2FA with a qrcode upload
This commit is contained in:
parent
a15160319e
commit
e36beaefd0
@ -238,7 +238,9 @@
|
|||||||
watch: {
|
watch: {
|
||||||
tempIcon: function(val) {
|
tempIcon: function(val) {
|
||||||
if( this.showQuickForm ) {
|
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.form.fill(response.data)
|
||||||
this.tempIcon = response.data.icon ? response.data.icon : null
|
this.tempIcon = response.data.icon ? response.data.icon : null
|
||||||
this.showQuickForm = true
|
this.showQuickForm = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.QuickFormOtpDisplayer.show()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
if( error.response.status === 422 ) {
|
if( error.response.status === 422 ) {
|
||||||
@ -265,7 +270,7 @@
|
|||||||
this.showAdvancedForm = true
|
this.showAdvancedForm = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
this.showAdvancedForm = true
|
this.showAdvancedForm = true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user