Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented: spinner in timezone modal for timezone configuration(#233) #254

Closed
wants to merge 9 commits into from
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"Failed to save CSV mapping.": "Failed to save CSV mapping.",
"Failed to delete CSV mapping.": "Failed to delete CSV mapping.",
"Failed to update CSV mapping.": "Failed to update CSV mapping.",
"Fetching time zones": "Fetching time zones",
"Field mapping name": "Field mapping name",
"This CSV mapping has been saved.": "This CSV mapping has been saved.",
"This CSV mapping has been deleted.": "This CSV mapping has been deleted.",
Expand Down
8 changes: 8 additions & 0 deletions src/theme/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,12 @@ http://ionicframework.com/docs/theming/ */
.mobile-only {
display: none;
}
}
.empty-state {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The styling needs to be added above the media-query styles

max-width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 10px;
}
7 changes: 5 additions & 2 deletions src/views/TimezoneModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
<ion-content class="ion-padding">
<!-- Empty state -->
<div class="empty-state" v-if="filteredTimeZones.length === 0">
<p>{{ $t("No time zone found")}}</p>
<ion-spinner name="crescent" ></ion-spinner>
<p>{{ $t("Fetching time zones") }}</p>
ymaheshwari1 marked this conversation as resolved.
Show resolved Hide resolved
</div>

<!-- Timezones -->
Expand Down Expand Up @@ -48,6 +49,7 @@ import {
IonFabButton,
IonHeader,
IonItem,
IonSpinner,
IonIcon,
IonLabel,
IonList,
Expand Down Expand Up @@ -76,6 +78,7 @@ export default defineComponent({
IonHeader,
IonIcon,
IonItem,
IonSpinner,
IonLabel,
IonList,
IonRadioGroup,
Expand Down Expand Up @@ -158,4 +161,4 @@ export default defineComponent({
};
}
});
</script>
</script>
Loading