feat: extensions, installed tab as default (#3649)
This commit is contained in:
parent
5a5f253fa5
commit
661b713993
2 changed files with 6 additions and 2 deletions
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue