From 680ae392015a1278abca2afdf348415c96f83605 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sat, 11 Oct 2025 11:38:58 +0200 Subject: [PATCH] fixed import button not switching to loading in app import --- vue3/src/composables/useFileApi.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vue3/src/composables/useFileApi.ts b/vue3/src/composables/useFileApi.ts index 364752318..d3fc03985 100644 --- a/vue3/src/composables/useFileApi.ts +++ b/vue3/src/composables/useFileApi.ts @@ -124,6 +124,8 @@ export function useFileApi() { * @returns Promise resolving to the import ID of the app import */ function doAppImport(files: File[], app: string, includeDuplicates: boolean, mealPlans: boolean = true, shoppingLists: boolean = true, nutritionPerServing: boolean = false,) { + fileApiLoading.value = true + let formData = new FormData() formData.append('type', app); formData.append('duplicates', includeDuplicates ? 'true' : 'false')