mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Allow hiding cancel on input popup
This commit is contained in:
@@ -281,6 +281,7 @@ export class Popup {
|
|||||||
case POPUP_TYPE.INPUT: {
|
case POPUP_TYPE.INPUT: {
|
||||||
this.mainInput.style.display = 'block';
|
this.mainInput.style.display = 'block';
|
||||||
if (!okButton) this.okButton.textContent = template.getAttribute('popup-button-save');
|
if (!okButton) this.okButton.textContent = template.getAttribute('popup-button-save');
|
||||||
|
if (cancelButton === false) this.cancelButton.style.display = 'none';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case POPUP_TYPE.DISPLAY: {
|
case POPUP_TYPE.DISPLAY: {
|
||||||
|
Reference in New Issue
Block a user