Allow hiding cancel on input popup
| @@ -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: { |