Allow hiding cancel on input popup

a4176ae00d437a46def19b9ee1298d647f4b4e1d

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -0Ignore whitespace
public/scripts/popup.js+1 -0
@@ -281,6 +281,7 @@ export class Popup {
281281 case POPUP_TYPE.INPUT: {
282282 this.mainInput.style.display = 'block';
283283 if (!okButton) this.okButton.textContent = template.getAttribute('popup-button-save');
284+ if (cancelButton === false) this.cancelButton.style.display = 'none';
284285 break;
285286 }
286287 case POPUP_TYPE.DISPLAY: {