|
|
|
@ -7,6 +7,7 @@ import openService from "../../services/open.js";
|
|
|
|
import BasicWidget from "../basic_widget.js";
|
|
|
|
import BasicWidget from "../basic_widget.js";
|
|
|
|
import { t } from "../../services/i18n.js";
|
|
|
|
import { t } from "../../services/i18n.js";
|
|
|
|
import type { EventData } from "../../components/app_context.js";
|
|
|
|
import type { EventData } from "../../components/app_context.js";
|
|
|
|
|
|
|
|
import { Modal } from "bootstrap";
|
|
|
|
|
|
|
|
|
|
|
|
const TPL = `
|
|
|
|
const TPL = `
|
|
|
|
<div class="export-dialog modal fade mx-auto" tabindex="-1" role="dialog">
|
|
|
|
<div class="export-dialog modal fade mx-auto" tabindex="-1" role="dialog">
|
|
|
|
@ -127,7 +128,7 @@ export default class ExportDialog extends BasicWidget {
|
|
|
|
|
|
|
|
|
|
|
|
private taskId: string;
|
|
|
|
private taskId: string;
|
|
|
|
private branchId: string | null;
|
|
|
|
private branchId: string | null;
|
|
|
|
private modal?: bootstrap.Modal;
|
|
|
|
private modal?: Modal;
|
|
|
|
private $form!: JQuery<HTMLElement>;
|
|
|
|
private $form!: JQuery<HTMLElement>;
|
|
|
|
private $noteTitle!: JQuery<HTMLElement>;
|
|
|
|
private $noteTitle!: JQuery<HTMLElement>;
|
|
|
|
private $subtreeFormats!: JQuery<HTMLElement>;
|
|
|
|
private $subtreeFormats!: JQuery<HTMLElement>;
|
|
|
|
@ -146,9 +147,7 @@ export default class ExportDialog extends BasicWidget {
|
|
|
|
|
|
|
|
|
|
|
|
doRender() {
|
|
|
|
doRender() {
|
|
|
|
this.$widget = $(TPL);
|
|
|
|
this.$widget = $(TPL);
|
|
|
|
// Remove once bootstrap is fixed.
|
|
|
|
this.modal = Modal.getOrCreateInstance(this.$widget[0]);
|
|
|
|
// @ts-ignore
|
|
|
|
|
|
|
|
this.modal = bootstrap.Modal.getOrCreateInstance(this.$widget);
|
|
|
|
|
|
|
|
this.$form = this.$widget.find(".export-form");
|
|
|
|
this.$form = this.$widget.find(".export-form");
|
|
|
|
this.$noteTitle = this.$widget.find(".export-note-title");
|
|
|
|
this.$noteTitle = this.$widget.find(".export-note-title");
|
|
|
|
this.$subtreeFormats = this.$widget.find(".export-subtree-formats");
|
|
|
|
this.$subtreeFormats = this.$widget.find(".export-subtree-formats");
|
|
|
|
|