fix-hide-scheduled #10
3 changed files with 4 additions and 4 deletions
|
@ -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",
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -10,5 +10,5 @@ export type Movie = {
|
|||
actors: string;
|
||||
plot: string;
|
||||
poster: string;
|
||||
last_watched: string;
|
||||
has_been_scheduled: boolean;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue