Add role status lights to screen filter picker
This commit is contained in:
parent
c83301841c
commit
2df9ec7c4d
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue