Add role status lights to screen filter picker

This commit is contained in:
Andrew Kingston 2022-06-09 16:04:58 +01:00
parent c83301841c
commit 2df9ec7c4d
1 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,12 @@
placeholder={null}
getOptionLabel={role => role.name}
getOptionValue={role => role._id}
getOptionColour={role => {
if (role?._id === "all") {
return null
}
return RoleUtils.getRoleColour(role._id)
}}
options={[{ name: "All screens", _id: "all" }, ...$roles]}
/>
</Layout>