feat: extensions, installed tab as default (#3649)

This commit is contained in:
dni ⚡ 2025-12-09 12:05:09 +01:00 committed by GitHub
parent 5a5f253fa5
commit 661b713993
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -8,7 +8,7 @@ window.PageExtensions = {
fullscreen: false,
autoplay: true,
searchTerm: '',
tab: 'all',
tab: 'installed',
manageExtensionTab: 'releases',
filteredExtensions: [],
updatableExtensions: [],
@ -637,6 +637,10 @@ window.PageExtensions = {
this.extensions = await this.fetchAllExtensions()
this.extbuilderEnabled = this.g.user.admin || this.LNBITS_EXT_BUILDER
if (this.g.user.extensions.length === 0) {
this.tab = 'all'
}
const extId = window.location.hash.replace('#', '')
const ext = this.extensions.find(ext => ext.id === extId)