mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
fix bug with dep error exists attr
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
FilterPackagesPipe,
|
||||
FilterPackagesPipeModule,
|
||||
} from '@start9labs/marketplace'
|
||||
import { defaultRegistries, i18nPipe } from '@start9labs/shared'
|
||||
import { i18nPipe } from '@start9labs/shared'
|
||||
import { TuiScrollbar } from '@taiga-ui/core'
|
||||
import { tap } from 'rxjs'
|
||||
import { MarketplaceService } from 'src/app/services/marketplace.service'
|
||||
|
||||
@@ -156,15 +156,14 @@ export class DepErrorService {
|
||||
|
||||
const depStatus = getInstalledBaseStatus(dep.statusInfo)
|
||||
|
||||
// not running
|
||||
if (depStatus !== 'running' && depStatus !== 'starting') {
|
||||
return {
|
||||
type: 'notRunning',
|
||||
}
|
||||
}
|
||||
|
||||
// health check failure
|
||||
if (currentDep?.kind === 'running') {
|
||||
// not running
|
||||
if (depStatus !== 'running' && depStatus !== 'starting') {
|
||||
return {
|
||||
type: 'notRunning',
|
||||
}
|
||||
}
|
||||
// health check failure
|
||||
for (let id of currentDep.healthChecks) {
|
||||
const check = dep.statusInfo.health[id]
|
||||
if (check?.result !== 'success') {
|
||||
|
||||
Reference in New Issue
Block a user