-
+
{{ list.name }}
@@ -66,8 +70,6 @@ import type { MovieList } from "~/types/movielist";
import type { Movie } from "~/types/movie";
import Modal from "~/components/Modal.vue";
-const movie_modal = ref | null>(null);
-
const list_id = ref(0);
const list = defineModel("movie_list", { default: [] });
const modal_movie: Ref = ref(null);
@@ -182,6 +184,11 @@ const showModal = function (movie: Movie) {
movie_modal.value?.toggleModal();
};
+const movie_modal = ref | null>(null);
+const closeModal = function (movie: Movie) {
+ movie_modal.value?.toggleModal();
+};
+
onMounted(() => {
const route = useRoute();
if (typeof route.params.id === "string") {
diff --git a/src/pages/schedule/index.vue b/src/pages/schedule/index.vue
index 88a56de..c373596 100644
--- a/src/pages/schedule/index.vue
+++ b/src/pages/schedule/index.vue
@@ -83,10 +83,10 @@ const months = [
];
const formatDate = function (date_string: string) {
- let parsed_date = new Date(Date.parse(date_string));
- let month = months[parsed_date.getMonth()];
+ let date = new Date(date_string);
+ let month = months[date.getMonth()];
- return `${month} ${parsed_date.getDate()}, ${parsed_date.getFullYear()}`;
+ return `${month} ${date.getDate()}, ${date.getFullYear()}`;
};
const getSchedule = async function (previous = false) {