ui: revert to sync style

This commit is contained in:
Aaron Greenspan
2021-01-20 13:04:32 -07:00
committed by Aiden McClelland
parent 833941b031
commit e96ef695a3
8 changed files with 72 additions and 91 deletions

View File

@@ -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 })
}
}