chore: cleanup base.html, minor issue and g.user initialisation (#3615)

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
dni ⚡
2025-12-04 10:21:40 +01:00
committed by GitHub
co-authored by Vlad Stan
parent 1fe35070f4
commit 73634e5161
8 changed files with 24 additions and 25 deletions
+2 -3
View File
@@ -26,8 +26,7 @@ window.PageExtensions = {
selectedRelease: null,
uninstallAndDropDb: false,
maxStars: 5,
paylinkWebsocket: null,
user: null
paylinkWebsocket: null
}
},
watch: {
@@ -636,7 +635,7 @@ window.PageExtensions = {
},
async created() {
this.extensions = await this.fetchAllExtensions()
this.extbuilderEnabled = user.admin || this.LNBITS_EXT_BUILDER
this.extbuilderEnabled = this.g.user.admin || this.LNBITS_EXT_BUILDER
const extId = window.location.hash.replace('#', '')
const ext = this.extensions.find(ext => ext.id === extId)