+
+ No Showings Found
+
-
-
+
- No Showings Found
-
+
+
![Movie Poster]()
+
+
+
+ {{ showing.movie.title }}
+
+
+ {{ formatDate(showing.showtime) }}
+
+ {{ showing.movie.plot }}
+
+
+
+
+
+
+
+
+ Previous Showings
+
- -
+
-
-
- {{ showing.movie.title }}
-
-
- {{ formatDate(showing.showtime) }}
-
+ {{ showing.movie.title }}
+ {{ formatDate(showing.showtime) }}
{{ showing.movie.plot }}
-
-
-
-
-
- Previous Showings
-
-
- -
-
-
![Movie Poster]()
-
-
-
{{ showing.movie.title }}
- {{ formatDate(showing.showtime) }}
- {{ showing.movie.plot }}
-
-
-
-
-
@@ -78,7 +72,6 @@ const past_showings = defineModel
("past_showings", {
default: [],
});
const loading = ref(true);
-const loadingPrevious = ref(false);
const got_previous = ref(false);
const months = [
"January",
@@ -103,9 +96,7 @@ const formatDate = function (date_string: string) {
};
const getSchedule = async function (previous = false) {
- if (previous) loadingPrevious.value = true;
- else loading.value = true;
-
+ loading.value = true;
let config = useRuntimeConfig();
if (got_previous.value) {
return false;
@@ -133,7 +124,6 @@ const getSchedule = async function (previous = false) {
schedule.value = data;
}
loading.value = false;
- loadingPrevious.value = false;
})
.catch((err) => {
switch (err.statusCode) {
@@ -143,7 +133,6 @@ const getSchedule = async function (previous = false) {
break;
case 404:
alert("Unable to find schedule");
- navigateTo("/");
break;
}
});