import { openDialog } from "../../services/dialog.js";
import BasicWidget from "../basic_widget.js";
import Container from "../containers/container.js";
const TPL = /*html*/`\
`;
export default class PopupEditorDialog extends Container {
constructor() {
super();
setTimeout(() => {
this.openPopupEditorEvent("7mLWh47uEPEp");
}, 750);
}
doRender() {
// This will populate this.$widget with the content of the children.
super.doRender();
// Now we wrap it in the modal.
const $newWidget = $(TPL);
$newWidget.find(".modal-body").append(this.$widget.children());
this.$widget = $newWidget;
}
async refresh() {
}
async openPopupEditorEvent(noteId: string) {
await this.refresh();
openDialog(this.$widget);
}
}