restore completeAffirmative, completeNegative, completeCancelled

This commit is contained in:
LenAnderson 2024-06-25 08:30:13 -04:00
parent d8dc16d6c1
commit c988f6f762
1 changed files with 9 additions and 0 deletions

View File

@ -358,6 +358,15 @@ export class Popup {
Popup.util.lastResult = { value, result };
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