ui: cleanup

This commit is contained in:
Aaron Greenspan
2021-01-20 17:10:25 -07:00
committed by Aiden McClelland
parent 219f66ae8a
commit 39accaa382
2 changed files with 4 additions and 1 deletions

View File

@@ -17,13 +17,15 @@ export class OSWelcomePage {
constructor (
private readonly modalCtrl: ModalController,
private readonly apiService: ApiService,
private readonly serverModel: ServerModel,
private readonly config: ConfigService,
) { }
// autoCheckUpdates default must be false when upgrading to 0.2.8
// autoCheckUpdates default must be false when upgrading to
async dismiss () {
this.apiService
.patchServerConfig('autoCheckUpdates', this.autoCheckUpdates)
.then(() => this.serverModel.update({ autoCheckUpdates: this.autoCheckUpdates }))
.then(() => this.apiService.acknowledgeOSWelcome(this.config.version))
.catch(console.error)

View File

@@ -87,6 +87,7 @@ export class StartupAlertsNotifier {
private async handleAppsCheck () {
this.checkedAppsForUpdates = true
try {
const availableApps = await this.apiService.getAvailableApps()
if (!!availableApps.find(app => this.emver.compare(app.versionInstalled, app.versionLatest) === -1)) {