fixed hide schedule bug
This commit is contained in:
parent
ebd6af58ba
commit
1382699dda
3 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@ export default defineNuxtConfig({
|
||||||
|
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
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 () {
|
const hideScheduled = function () {
|
||||||
if (hide_scheduled && movies.value.length > 0) {
|
if (hide_scheduled.value && movies.value.length > 0) {
|
||||||
let filtered = movies.value.filter((movie) => {
|
let filtered = movies.value.filter((movie) => {
|
||||||
return movie.last_watched === null;
|
return !movie.has_been_scheduled;
|
||||||
});
|
});
|
||||||
if (typeof filtered != "undefined") {
|
if (typeof filtered != "undefined") {
|
||||||
filtered_movies.value = filtered;
|
filtered_movies.value = filtered;
|
||||||
|
|
|
@ -10,5 +10,5 @@ export type Movie = {
|
||||||
actors: string;
|
actors: string;
|
||||||
plot: string;
|
plot: string;
|
||||||
poster: string;
|
poster: string;
|
||||||
last_watched: string;
|
has_been_scheduled: boolean;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue