Allow hiding cancel on input popup

a4176ae00d437a46def19b9ee1298d647f4b4e1d

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

1 files changed, +1 -0Showing whitespace changes
public/scripts/popup.js+1 -0
@@ -281,6 +281,7 @@ export class Popup {
281 case POPUP_TYPE.INPUT: {281 case POPUP_TYPE.INPUT: {
282 this.mainInput.style.display = 'block';282 this.mainInput.style.display = 'block';
283 if (!okButton) this.okButton.textContent = template.getAttribute('popup-button-save');283 if (!okButton) this.okButton.textContent = template.getAttribute('popup-button-save');
284 if (cancelButton === false) this.cancelButton.style.display = 'none';
284 break;285 break;
285 }286 }
286 case POPUP_TYPE.DISPLAY: {287 case POPUP_TYPE.DISPLAY: {