mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(alert): return promise from dismiss
This commit is contained in:
@@ -197,8 +197,8 @@ class ActionSheetCmp {
|
||||
}
|
||||
}
|
||||
|
||||
dismiss() {
|
||||
this._viewCtrl.dismiss(null);
|
||||
dismiss(): Promise<any> {
|
||||
return this._viewCtrl.dismiss(null);
|
||||
}
|
||||
|
||||
onPageLoaded() {
|
||||
|
||||
@@ -418,8 +418,8 @@ class AlertCmp {
|
||||
checkedInput.checked = !checkedInput.checked;
|
||||
}
|
||||
|
||||
dismiss() {
|
||||
this._viewCtrl.dismiss(this.getValues());
|
||||
dismiss(): Promise<any> {
|
||||
return this._viewCtrl.dismiss(this.getValues());
|
||||
}
|
||||
|
||||
getValues() {
|
||||
|
||||
Reference in New Issue
Block a user