diff --git a/components/calendar/Calendar.vue b/components/calendar/Calendar.vue index 445a1ee..07234d7 100644 --- a/components/calendar/Calendar.vue +++ b/components/calendar/Calendar.vue @@ -51,9 +51,9 @@ onMounted(() => { - - - + + + diff --git a/components/global/LoadingCard.vue b/components/global/LoadingCard.vue new file mode 100644 index 0000000..4d8e611 --- /dev/null +++ b/components/global/LoadingCard.vue @@ -0,0 +1,21 @@ + + + diff --git a/pages/calendars/[id].vue b/pages/calendars/[id].vue index 7a2d152..2b523f4 100644 --- a/pages/calendars/[id].vue +++ b/pages/calendars/[id].vue @@ -68,21 +68,21 @@ watch(user, () => {
- + {{ $t("entity.calendar.notFound") }} - +

{{ $t('entity.calendar.notFoundDescription') }}

- + {{ $t('entity.calendar.backToList') }} - +
diff --git a/pages/explore.vue b/pages/explore.vue index b9663d4..b487220 100644 --- a/pages/explore.vue +++ b/pages/explore.vue @@ -5,7 +5,9 @@ definePageMeta({ middleware: ["reset-menu"] }) -const { data: availableCalendars } = await useLazyFetch<{ data: Calendar[] }>("/api/calendars/query", { key: "explore-calendars", query: { full: true } }) +const { data: availableCalendars, status: calendarStatus } = await useLazyFetch<{ data: Calendar[] }>("/api/calendars/query", { key: "explore-calendars", query: { full: true } }) + +const isLoading = computed(() => calendarStatus.value === "pending") diff --git a/pages/my/worlds/[id].vue b/pages/my/worlds/[id].vue index c26464d..bc29762 100644 --- a/pages/my/worlds/[id].vue +++ b/pages/my/worlds/[id].vue @@ -251,10 +251,10 @@ function hideEditModal() { - - - - + + + +