mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
await not setTimeout
This commit is contained in:
committed by
Matt Hill
parent
18a290f502
commit
1c8c036225
@@ -158,7 +158,7 @@ export class AppActionsPage {
|
||||
'action-id': actionId,
|
||||
input,
|
||||
})
|
||||
this.modalCtrl.dismiss()
|
||||
await this.modalCtrl.dismiss()
|
||||
const successModal = await this.modalCtrl.create({
|
||||
component: ActionSuccessPage,
|
||||
cssClass: res.qr ? 'action-success-modal-qr' : 'action-success-modal',
|
||||
@@ -167,7 +167,7 @@ export class AppActionsPage {
|
||||
},
|
||||
})
|
||||
|
||||
setTimeout(() => successModal.present(), 400)
|
||||
await successModal.present()
|
||||
|
||||
} catch (e) {
|
||||
this.errToast.present(e)
|
||||
|
||||
Reference in New Issue
Block a user