Skip to content

Commit

Permalink
chore(animated modal): add method to get previous modal in chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Mar 24, 2024
1 parent 6f75abe commit 7915df5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/ts/utils/animated-modal.ts
Expand Up @@ -118,6 +118,10 @@ export default class AnimatedModal {
Skeleton.save(this.dialogId);
}

getPreviousModalInChain(): AnimatedModal | undefined {
return this.previousModalInChain;
}

async runSetup(): Promise<void> {
this.wrapperEl.addEventListener("keydown", (e) => {
if (e.key === "Escape" && isPopupVisible(this.dialogId)) {
Expand Down

0 comments on commit 7915df5

Please sign in to comment.