From 3e91f28a76547c9a4bb8d2b460d4d54842e2bbf3 Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Sun, 21 Jul 2024 20:24:59 +0200 Subject: [PATCH] prevent storageModal to be closed after making changes --- dist/index.js | 1 + src/ViewModel/storageViewModel.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index 029ef3ef..c6ffa527 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2245,6 +2245,7 @@ hideStorageModal = () => { if (this.didMakeChanges.value == true) { window.location.reload(); + return; } this.isShowingStorageModal.value = false; }; diff --git a/src/ViewModel/storageViewModel.ts b/src/ViewModel/storageViewModel.ts index 9f3951b2..9a8b5b38 100644 --- a/src/ViewModel/storageViewModel.ts +++ b/src/ViewModel/storageViewModel.ts @@ -43,6 +43,7 @@ export default class StorageViewModel { hideStorageModal = (): void => { if (this.didMakeChanges.value == true) { window.location.reload(); + return; } this.isShowingStorageModal.value = false; };