merge print options into active file area. always show ams but disable when absent

This commit is contained in:
Stewart Allen 2025-02-12 20:16:12 -05:00
commit b402fa9324
2 changed files with 43 additions and 43 deletions

View file

@ -69,6 +69,13 @@ gapp.register("kiri.ui", [], (root, exports) => {
prompt,
alert,
onBlur,
setEnabled(el, bool) {
if (bool) {
el.removeAttribute('disabled');
} else {
el.setAttribute('disabled','');
}
},
setVisible(el, bool) {
kiri.ui.setClass(el, 'hide', !bool);
},