diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d20337d..3972940 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,10 +5,8 @@ - - - + diff --git a/src/assets/img/movie-loader.mp4 b/src/assets/img/movie-loader.mp4 new file mode 100644 index 0000000..bae8fba Binary files /dev/null and b/src/assets/img/movie-loader.mp4 differ diff --git a/src/components/LoadingIcon.vue b/src/components/LoadingIcon.vue index 9ebb6eb..61c2865 100644 --- a/src/components/LoadingIcon.vue +++ b/src/components/LoadingIcon.vue @@ -7,9 +7,14 @@ class="flex absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2" loop muted - src="/assets/img/movie-loader.webm" type="video/webm" - /> + > + + + diff --git a/src/pages/schedule/index.vue b/src/pages/schedule/index.vue index 5a79a9a..5890ad3 100644 --- a/src/pages/schedule/index.vue +++ b/src/pages/schedule/index.vue @@ -1,47 +1,18 @@ @@ -72,6 +78,7 @@ const past_showings = defineModel("past_showings", { default: [], }); const loading = ref(true); +const loadingPrevious = ref(false); const got_previous = ref(false); const months = [ "January", @@ -96,7 +103,9 @@ const formatDate = function (date_string: string) { }; const getSchedule = async function (previous = false) { - loading.value = true; + if (previous) loadingPrevious.value = true; + else loading.value = true; + let config = useRuntimeConfig(); if (got_previous.value) { return false; @@ -124,6 +133,7 @@ const getSchedule = async function (previous = false) { schedule.value = data; } loading.value = false; + loadingPrevious.value = false; }) .catch((err) => { switch (err.statusCode) { @@ -133,6 +143,7 @@ const getSchedule = async function (previous = false) { break; case 404: alert("Unable to find schedule"); + navigateTo("/"); break; } });