Dialog work

Get tracker "Multiple changes" working
This commit is contained in:
nathan 2022-12-01 11:38:02 -07:00
parent 634e00f948
commit e2fc779207
2 changed files with 13 additions and 0 deletions

View File

@ -395,6 +395,17 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
this.remove();
}
/**
* Hide the dialog.
* Depending on destroyOnClose, it may be removed as well
*
* N.B. We can't have open() because it conflicts with SlDialog. Use show() instead.
*/
close()
{
this.hide();
}
addOpenListeners()
{
//super.addOpenListeners();

View File

@ -453,6 +453,8 @@ export function nm_open_popup(_action, _selected)
dialog.destroyOnClose = false;
dialog.id = popup.id;
popup.removeAttribute("id");
// Remove class that hides
popup.classList.remove("prompt");
// Set title
let title = popup.querySelector(".promptheader")