From 4ca55178ce0e798e728e4a36eccca6ceb99feb7f Mon Sep 17 00:00:00 2001 From: Trenton Zimmer <66042448+trmazi@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:55:40 -0400 Subject: [PATCH] enable saving state on network --- src/stores/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stores/main.js b/src/stores/main.js index 4925e37..5713e9f 100644 --- a/src/stores/main.js +++ b/src/stores/main.js @@ -84,6 +84,10 @@ export const useMainStore = defineStore("main", { loadingTimeout = setTimeout(() => { if (method === "GET") { this.isLoading = true; + this.isSaving = false; + } else if (method === "POST") { + this.isLoading = true; + this.isSaving = true; } }, 200); // Wait for .2 seconds before showing loading modal };