mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
ui: cleanup
This commit is contained in:
committed by
Aiden McClelland
parent
219f66ae8a
commit
39accaa382
@@ -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)
|
||||
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user