mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
restore completeAffirmative, completeNegative, completeCancelled
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user