diff --git a/lnbits/static/js/base.js b/lnbits/static/js/base.js
index d2bbbf78e..a1b42cacb 100644
--- a/lnbits/static/js/base.js
+++ b/lnbits/static/js/base.js
@@ -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 () {
diff --git a/lnbits/static/js/components.js b/lnbits/static/js/components.js
index 0d40fe10e..a11073af5 100644
--- a/lnbits/static/js/components.js
+++ b/lnbits/static/js/components.js
@@ -177,6 +177,35 @@ Vue.component('lnbits-extension-list', {
}
})
+
+Vue.component('lnbits-admin-ui', {
+ data: function () {
+ return {
+ extensions: [],
+ user: null
+ }
+ },
+ template: `
+
+ Admin
+
+
+
+
+
+ Manage Server
+
+
+
+ `,
+
+ created: function () {
+ if (window.user) {
+ this.user = LNbits.map.user(window.user)
+ }
+ }
+})
+
Vue.component('lnbits-payment-details', {
props: ['payment'],
data: function () {
diff --git a/lnbits/templates/base.html b/lnbits/templates/base.html
index 1a74fee7b..073058d2d 100644
--- a/lnbits/templates/base.html
+++ b/lnbits/templates/base.html
@@ -163,17 +163,6 @@
>
Toggle Dark Mode
-
- Admin Console
-
@@ -186,6 +175,7 @@
:elevated="$q.screen.lt.md"
>
+
{% endblock %} {% block page_container %}