mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Popup: do not require body text on input/confirm
This commit is contained in:
@@ -75,7 +75,7 @@ const showPopupHelper = {
|
|||||||
* Asynchronously displays an input popup with the given header and text, and returns the user's input.
|
* Asynchronously displays an input popup with the given header and text, and returns the user's input.
|
||||||
*
|
*
|
||||||
* @param {string?} header - The header text for the popup.
|
* @param {string?} header - The header text for the popup.
|
||||||
* @param {string?} text - The main text for the popup.
|
* @param {string?} [text] - The main text for the popup.
|
||||||
* @param {string} [defaultValue=''] - The default value for the input field.
|
* @param {string} [defaultValue=''] - The default value for the input field.
|
||||||
* @param {PopupOptions} [popupOptions={}] - Options for the popup.
|
* @param {PopupOptions} [popupOptions={}] - Options for the popup.
|
||||||
* @return {Promise<string?>} A Promise that resolves with the user's input.
|
* @return {Promise<string?>} A Promise that resolves with the user's input.
|
||||||
@@ -94,7 +94,7 @@ const showPopupHelper = {
|
|||||||
* Asynchronously displays a confirmation popup with the given header and text, returning the clicked result button value.
|
* Asynchronously displays a confirmation popup with the given header and text, returning the clicked result button value.
|
||||||
*
|
*
|
||||||
* @param {string?} header - The header text for the popup.
|
* @param {string?} header - The header text for the popup.
|
||||||
* @param {string?} text - The main text for the popup.
|
* @param {string?} [text] - The main text for the popup.
|
||||||
* @param {PopupOptions} [popupOptions={}] - Options for the popup.
|
* @param {PopupOptions} [popupOptions={}] - Options for the popup.
|
||||||
* @return {Promise<POPUP_RESULT?>} A Promise that resolves with the result of the user's interaction.
|
* @return {Promise<POPUP_RESULT?>} A Promise that resolves with the result of the user's interaction.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user