ui: factors auto checks

This commit is contained in:
Aaron Greenspan
2021-01-19 13:53:51 -07:00
committed by Aiden McClelland
parent b717853759
commit b7821576bb
7 changed files with 187 additions and 94 deletions

View File

@@ -1,5 +1,6 @@
import { Injectable } from '@angular/core'
import { AppModel, AppStatus } from 'src/app/models/app-model'
import { exists } from 'src/app/util/misc.util'
import { AppDependency, DependentBreakage, AppInstalledPreview } from '../../models/app-types'
import { ApiService } from '../../services/api/api.service'
import { InstallWizardComponent, SlideDefinition, TopbarParams } from './install-wizard.component'
@@ -171,5 +172,5 @@ function validate<T> (t: T, test: (t: T) => Boolean, desc: string) {
}
}
const exists = t => !!t
const defaultUninstallationWarning = serviceName => `Uninstalling ${ serviceName } will result in the deletion of its data.`

View File

@@ -16,7 +16,7 @@ export class UpdateOsBannerComponent {
private readonly alertCtrl: AlertController,
private readonly loader: LoaderService,
) {
this.updateAvailable$ = this.osUpdateService.watchForUpdateAvailable()
this.updateAvailable$ = this.osUpdateService.watchForUpdateAvailable$()
}
ngOnInit () { }