Files
start-os/frontend/projects/ui/src/app/util/has-deps.ts
Matt Hill 0ac5b34f2d Remove app wiz and dry calls (#1541)
* no more app wiz or dry calls

* change spinner type

* better display for update available

* reintroduce dep breakages for update/downgrade and style alerts everywhere

* only show install alert on first install

Co-authored-by: Matt Hill <matthill@Matt-M1.local>
Co-authored-by: Matt Hill <matthill@Matt-M1.start9.dev>
2022-06-19 13:46:09 -06:00

8 lines
298 B
TypeScript

import { PackageDataEntry } from '../services/patch-db/data-model'
export function hasCurrentDeps(pkg: PackageDataEntry): boolean {
return !!Object.keys(pkg.installed?.['current-dependents'] || {})
// @TODO fix Manifest type
.filter(depId => depId !== (pkg.manifest as any).id).length
}