Use $root var for appSettings because vue.prototype vars are not reactive

This commit is contained in:
Bubka
2020-03-23 17:25:53 +01:00
parent 1368f2eba0
commit 0baf57b2a2
5 changed files with 11 additions and 10 deletions

View File

@ -42,7 +42,7 @@
computed: {
displayedOtp() {
return appSettings.showTokenAsDot ? this.otp.replace(/[0-9]/g, '●') : this.otp
return this.$root.appSettings.showTokenAsDot ? this.otp.replace(/[0-9]/g, '●') : this.otp
}
},