Skip to content

Commit

Permalink
Improved: isLoading value to false initially and changing the value a…
Browse files Browse the repository at this point in the history
…ccording the API call
  • Loading branch information
Ritika-Patel08 committed Jan 9, 2024
1 parent 85cdac8 commit 7df6aca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/TimezoneModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default defineComponent({
filteredTimeZones: [],
timeZones: [],
timeZoneId: '',
isLoading: true
isLoading: false
}
},
methods: {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7df6aca

Please sign in to comment.