1
0
Fork 0
mirror of synced 2024-09-15 00:38:01 +12: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 c83301841c
commit 2df9ec7c4d

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>