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,
|
fullscreen: false,
|
||||||
autoplay: true,
|
autoplay: true,
|
||||||
searchTerm: '',
|
searchTerm: '',
|
||||||
tab: 'all',
|
tab: 'installed',
|
||||||
manageExtensionTab: 'releases',
|
manageExtensionTab: 'releases',
|
||||||
filteredExtensions: [],
|
filteredExtensions: [],
|
||||||
updatableExtensions: [],
|
updatableExtensions: [],
|
||||||
@@ -637,6 +637,10 @@ window.PageExtensions = {
|
|||||||
this.extensions = await this.fetchAllExtensions()
|
this.extensions = await this.fetchAllExtensions()
|
||||||
this.extbuilderEnabled = this.g.user.admin || this.LNBITS_EXT_BUILDER
|
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 extId = window.location.hash.replace('#', '')
|
||||||
const ext = this.extensions.find(ext => ext.id === extId)
|
const ext = this.extensions.find(ext => ext.id === extId)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user