diff --git a/ui/src/components/Search.vue b/ui/src/components/Search.vue index 2cdbe97ee..ac4fd2988 100644 --- a/ui/src/components/Search.vue +++ b/ui/src/components/Search.vue @@ -152,6 +152,10 @@ export default { { filter: "enrollmentDate", type: "date" + }, + { + filter: "isEnrolled", + type: "boolean" } ] }, diff --git a/ui/src/views/SearchHelp.vue b/ui/src/views/SearchHelp.vue index bf43d03be..5606dff62 100644 --- a/ui/src/views/SearchHelp.vue +++ b/ui/src/views/SearchHelp.vue @@ -202,6 +202,13 @@ + +

Filter by enrollment status

+

+ You can search for individuals based on whether they have any + affiliation, using the isEnrolled:true and + isEnrolled:false filters. +

diff --git a/ui/tests/unit/__snapshots__/mutations.spec.js.snap b/ui/tests/unit/__snapshots__/mutations.spec.js.snap index 246911a45..2a75ff9a1 100644 --- a/ui/tests/unit/__snapshots__/mutations.spec.js.snap +++ b/ui/tests/unit/__snapshots__/mutations.spec.js.snap @@ -87,7 +87,7 @@ exports[`IndividualsTable Mock query for deleteIdentity 1`] = ` filterselector="true" orderoptions="[object Object],[object Object],[object Object]" orderselector="true" - validfilters="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" + validfilters="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" />