fix-hide-scheduled #10

Merged
tiradoe merged 2 commits from fix-hide-scheduled into main 2025-05-29 18:56:33 +00:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit 1382699dda - Show all commits

View file

@ -24,7 +24,7 @@ export default defineNuxtConfig({
runtimeConfig: {
public: {
apiURL: process.env.API_URL || "http://localhost:8000/api",
apiURL: process.env.API_URL || "http://localhost:8000/v1",
},
},

View file

@ -120,9 +120,9 @@ const getList = async function (list_id: number) {
};
const hideScheduled = function () {
if (hide_scheduled && movies.value.length > 0) {
if (hide_scheduled.value && movies.value.length > 0) {
let filtered = movies.value.filter((movie) => {
return movie.last_watched === null;
return !movie.has_been_scheduled;
});
if (typeof filtered != "undefined") {
filtered_movies.value = filtered;

View file

@ -10,5 +10,5 @@ export type Movie = {
actors: string;
plot: string;
poster: string;
last_watched: string;
has_been_scheduled: boolean;
};