diff --git a/admin/src/components/FilterRow.js b/admin/src/components/FilterRow.js index 246989360..c821657a5 100644 --- a/admin/src/components/FilterRow.js +++ b/admin/src/components/FilterRow.js @@ -52,6 +52,11 @@ class FilterRow extends React.Component { value: "adult", label: "Adult", }, + status: { + type: "string", + value: "status", + label: "Status", + }, }; const operators = { equals: { diff --git a/api/requests/filter.js b/api/requests/filter.js index 7c6304f20..81497ebb0 100644 --- a/api/requests/filter.js +++ b/api/requests/filter.js @@ -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; }