Skip to content

Commit

Permalink
Fix attachment dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
marktaipan-cvisionai committed Jul 11, 2024
1 parent 1c2e5a6 commit 65b6f0f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/src/js/project-detail/project-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ export class ProjectDetail extends TatorPage {
this._uploadDialog = document.createElement("upload-dialog");
this._projects.appendChild(this._uploadDialog);

const attachmentDialog = document.createElement("attachment-dialog");
attachmentDialog._header.classList.add("fixed-height-scroll");
this._projects.appendChild(attachmentDialog);
this._attachmentDialog = document.createElement("attachment-dialog");
this._attachmentDialog._header.classList.add("fixed-height-scroll");
this._projects.appendChild(this._attachmentDialog);

this._activityNav = document.createElement("activity-nav");
this.main.appendChild(this._activityNav);
Expand Down Expand Up @@ -412,7 +412,7 @@ export class ProjectDetail extends TatorPage {
this.removeAttribute("has-open-modal");
});

attachmentDialog.addEventListener("close", (evt) => {
this._attachmentDialog.addEventListener("close", (evt) => {
this.removeAttribute("has-open-modal");
});

Expand Down Expand Up @@ -852,8 +852,8 @@ export class ProjectDetail extends TatorPage {
});

this._mediaSection.addEventListener("attachments", (evt) => {
attachmentDialog.init(evt.detail);
attachmentDialog.setAttribute("is-open", "");
this._attachmentDialog.init(evt.detail);
this._attachmentDialog.setAttribute("is-open", "");
this.setAttribute("has-open-modal", "");
});
}
Expand Down

0 comments on commit 65b6f0f

Please sign in to comment.