Skip to content

Commit 526e843

Browse files
Closes #2039 - Hidden save dialogs
1 parent d08bd67 commit 526e843

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/src/js/annotation/annotation-page.js

+4
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,7 @@ export class AnnotationPage extends TatorPage {
14951495
this._settings.setAttribute("version", this._version.id);
14961496
this._outerMain.appendChild(save);
14971497
this._saves[dataType] = save;
1498+
save.style.display = "none";
14981499

14991500
save.addEventListener("cancel", () => {
15001501
this._closeModal(save);
@@ -1521,6 +1522,7 @@ export class AnnotationPage extends TatorPage {
15211522
this._settings.setAttribute("version", this._version.id);
15221523
this._outerMain.appendChild(save);
15231524
this._saves[dataType.id] = save;
1525+
save.style.display = "none";
15241526

15251527
// For states specifically, if we are using the multi-view, we will
15261528
// create the state across all media
@@ -2264,6 +2266,7 @@ export class AnnotationPage extends TatorPage {
22642266

22652267
_closeModal(save) {
22662268
if (save.classList.contains("is-open")) {
2269+
save.style.display = "none";
22672270
save.classList.remove("is-open");
22682271
this.removeAttribute("has-open-modal");
22692272
document.body.classList.remove("shortcuts-disabled");
@@ -2284,6 +2287,7 @@ export class AnnotationPage extends TatorPage {
22842287
save.metaMode = metaMode;
22852288
save.classList.add("is-open");
22862289
save.dispatchEvent(new Event("open"));
2290+
save.style.display = "block";
22872291
this.setAttribute("has-open-modal", "");
22882292
document.body.classList.add("shortcuts-disabled");
22892293

0 commit comments

Comments
 (0)