mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix bugs with config and clean up dev options (#1558)
* fix bugs with config and clean up dev options * dont down down arrow in logs prematurely * change config error border to match error text red color * change restart button color * fix error when sideloading and update copy * adds back in param cloning as this bug creeped up again * make restarting text match button color * fix version comparision for updates category Co-authored-by: Matt Hill <matthill@Matt-M1.local> Co-authored-by: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
This commit is contained in:
@@ -3,6 +3,7 @@ import Fuse from 'fuse.js'
|
||||
|
||||
import { MarketplacePkg } from '../types/marketplace-pkg'
|
||||
import { MarketplaceManifest } from '../types/marketplace-manifest'
|
||||
import { Emver } from '@start9labs/shared'
|
||||
|
||||
const defaultOps = {
|
||||
isCaseSensitive: false,
|
||||
@@ -29,6 +30,8 @@ const defaultOps = {
|
||||
name: 'filterPackages',
|
||||
})
|
||||
export class FilterPackagesPipe implements PipeTransform {
|
||||
constructor(private readonly emver: Emver) {}
|
||||
|
||||
transform(
|
||||
packages: MarketplacePkg[] | null,
|
||||
query: string,
|
||||
@@ -49,7 +52,10 @@ export class FilterPackagesPipe implements PipeTransform {
|
||||
return packages.filter(
|
||||
({ manifest }) =>
|
||||
local[manifest.id] &&
|
||||
manifest.version !== local[manifest.id].manifest.version,
|
||||
this.emver.compare(
|
||||
manifest.version,
|
||||
local[manifest.id].manifest.version,
|
||||
) === 1,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user