mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
Merge branch 'integration/0.3.0' of github.com:Start9Labs/embassy-os into integration/0.3.0
This commit is contained in:
@@ -96,7 +96,9 @@ export class MarketplaceListPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async search (): Promise<void> {
|
async search (): Promise<void> {
|
||||||
this.category = undefined
|
if (this.query) {
|
||||||
|
this.category = undefined
|
||||||
|
}
|
||||||
await this.filterPkgs()
|
await this.filterPkgs()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,7 +142,7 @@ export class MarketplaceListPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const fuse = new Fuse(pkgsToSort, { ...defaultOps, threshold: 1 })
|
const fuse = new Fuse(pkgsToSort, { ...defaultOps, threshold: 1 })
|
||||||
this.pkgs = fuse.search(this.category !== 'all' ? this.category : 'bit').map(p => p.item)
|
this.pkgs = fuse.search(this.category !== 'all' ? this.category || '' : 'bit').map(p => p.item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user