Added the function for toggling hide user info from the drop menu

this is for syncing the bottom left drop menu with settings page
This commit is contained in:
Onur Gümüş 2022-01-20 04:45:53 +03:00
parent 9eb8e68bba
commit ac354a07ab

View file

@ -3247,6 +3247,15 @@ const app = new Vue({
return 0 !== s && (h = s > 0 ? "-" : "+"),
`${h}${leadingZeros(n, 2)}:${leadingZeros(d, 2)}`
},
toggleHideUserInfo() {
if(this.chrome.hideUserInfo) {
this.cfg.visual.showuserinfo = true
this.chrome.hideUserInfo = false
} else {
this.cfg.visual.showuserinfo = false
this.chrome.hideUserInfo = true
}
}
}
})