restore completeAffirmative, completeNegative, completeCancelled
This commit is contained in:
parent
d8dc16d6c1
commit
c988f6f762
|
@ -358,6 +358,15 @@ export class Popup {
|
||||||
Popup.util.lastResult = { value, result };
|
Popup.util.lastResult = { value, result };
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
|
completeAffirmative() {
|
||||||
|
return this.complete(POPUP_RESULT.AFFIRMATIVE);
|
||||||
|
}
|
||||||
|
completeNegative() {
|
||||||
|
return this.complete(POPUP_RESULT.NEGATIVE);
|
||||||
|
}
|
||||||
|
completeCancelled() {
|
||||||
|
return this.complete(POPUP_RESULT.CANCELLED);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hides the popup, using the internal resolver to return the value to the original show promise
|
* Hides the popup, using the internal resolver to return the value to the original show promise
|
||||||
|
|
Loading…
Reference in New Issue