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