mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
ui: revert to sync style
This commit is contained in:
committed by
Aiden McClelland
parent
833941b031
commit
e96ef695a3
@@ -19,18 +19,14 @@ export class OSWelcomePage {
|
||||
private readonly modalCtrl: ModalController,
|
||||
private readonly apiService: ApiService,
|
||||
private readonly serverModel: ServerModel,
|
||||
private readonly loader: LoaderService,
|
||||
) { }
|
||||
|
||||
async dismiss () {
|
||||
await this.loader.displayDuringP(
|
||||
this.apiService
|
||||
this.apiService
|
||||
.patchServerConfig('autoCheckUpdates', this.autoCheckUpdates)
|
||||
.then(() => this.serverModel.update({ autoCheckUpdates: this.autoCheckUpdates }))
|
||||
.then(() => pauseFor(600000))
|
||||
.catch(console.error),
|
||||
).then(
|
||||
() => this.modalCtrl.dismiss({ autoCheckUpdates: this.autoCheckUpdates })
|
||||
)
|
||||
|
||||
this.modalCtrl.dismiss({ autoCheckUpdates: this.autoCheckUpdates })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user