enable saving state on network

This commit is contained in:
Trenton Zimmer 2024-10-14 18:55:40 -04:00
parent 248b6f9d89
commit 4ca55178ce

View File

@ -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
};