feat: move Admin to left hand side menu

This commit is contained in:
Vlad Stan
2022-12-12 11:31:29 +02:00
parent 6a80f7c713
commit 9e61c80d02
3 changed files with 30 additions and 20 deletions
-9
View File
@@ -333,12 +333,6 @@ window.windowMixin = {
}
},
computed: {
isAdminUser: function () {
return this.g.user?.admin
}
},
methods: {
changeColor: function (newValue) {
document.body.setAttribute('data-theme', newValue)
@@ -348,9 +342,6 @@ window.windowMixin = {
this.$q.dark.toggle()
this.$q.localStorage.set('lnbits.darkMode', this.$q.dark.isActive)
},
goToAdminConsole: function () {
window.location.href = '/admin?usr=' + this.g.user.id
},
copyText: function (text, message, position) {
var notify = this.$q.notify
Quasar.utils.copyToClipboard(text).then(function () {