Allow hiding cancel on input popup

This commit is contained in:
Cohee 2024-09-02 00:12:20 +03:00
parent 48c2646dfa
commit a4176ae00d
1 changed files with 1 additions and 0 deletions

View File

@ -281,6 +281,7 @@ export class Popup {
case POPUP_TYPE.INPUT: {
this.mainInput.style.display = 'block';
if (!okButton) this.okButton.textContent = template.getAttribute('popup-button-save');
if (cancelButton === false) this.cancelButton.style.display = 'none';
break;
}
case POPUP_TYPE.DISPLAY: {