1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Add role status lights to screen filter picker

This commit is contained in:
Andrew Kingston 2022-06-09 16:04:58 +01:00
parent e2105f51a8
commit 1de1091ded

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>