Skip to content

Commit

Permalink
Added tv/movie status filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ADRFranklin committed Jul 3, 2021
1 parent b18632e commit 7043b0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions admin/src/components/FilterRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ class FilterRow extends React.Component {
value: "adult",
label: "Adult",
},
status: {
type: "string",
value: "status",
label: "Status",
},
};
const operators = {
equals: {
Expand Down
4 changes: 4 additions & 0 deletions api/requests/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ function getValue(condition, media) {
values = [];
if (media.adult !== undefined) values.push(media.adult);
break;
case "status":
values = [];
if (media.status !== undefined) values.push(media.status);
break;
}
return values;
}
Expand Down

0 comments on commit 7043b0c

Please sign in to comment.