From 7df6acaddb606470aac280a9deba6481c6ff193f Mon Sep 17 00:00:00 2001 From: Ritika-Patel08 Date: Tue, 9 Jan 2024 17:02:45 +0530 Subject: [PATCH] Improved: isLoading value to false initially and changing the value according the API call --- src/views/TimezoneModal.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/TimezoneModal.vue b/src/views/TimezoneModal.vue index 782f69a3..caf9b0e2 100644 --- a/src/views/TimezoneModal.vue +++ b/src/views/TimezoneModal.vue @@ -93,7 +93,7 @@ export default defineComponent({ filteredTimeZones: [], timeZones: [], timeZoneId: '', - isLoading: true + isLoading: false } }, methods: { @@ -130,6 +130,7 @@ export default defineComponent({ }); }, async getAvailableTimeZones() { + this.isLoading = true; const resp = await UserService.getAvailableTimeZones() if(resp.status === 200 && !hasError(resp)) { // We are filtering valid the timeZones coming with response here