feat: extensions, installed tab as default (#3649)
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user