mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +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 (
|
constructor (
|
||||||
private readonly modalCtrl: ModalController,
|
private readonly modalCtrl: ModalController,
|
||||||
private readonly apiService: ApiService,
|
private readonly apiService: ApiService,
|
||||||
|
private readonly serverModel: ServerModel,
|
||||||
private readonly config: ConfigService,
|
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 () {
|
async dismiss () {
|
||||||
this.apiService
|
this.apiService
|
||||||
.patchServerConfig('autoCheckUpdates', this.autoCheckUpdates)
|
.patchServerConfig('autoCheckUpdates', this.autoCheckUpdates)
|
||||||
|
.then(() => this.serverModel.update({ autoCheckUpdates: this.autoCheckUpdates }))
|
||||||
.then(() => this.apiService.acknowledgeOSWelcome(this.config.version))
|
.then(() => this.apiService.acknowledgeOSWelcome(this.config.version))
|
||||||
.catch(console.error)
|
.catch(console.error)
|
||||||
|
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ export class StartupAlertsNotifier {
|
|||||||
|
|
||||||
private async handleAppsCheck () {
|
private async handleAppsCheck () {
|
||||||
this.checkedAppsForUpdates = true
|
this.checkedAppsForUpdates = true
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const availableApps = await this.apiService.getAvailableApps()
|
const availableApps = await this.apiService.getAvailableApps()
|
||||||
if (!!availableApps.find(app => this.emver.compare(app.versionInstalled, app.versionLatest) === -1)) {
|
if (!!availableApps.find(app => this.emver.compare(app.versionInstalled, app.versionLatest) === -1)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user