From 2df9ec7c4d3bd039d91af72eda8d47118f429e43 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 9 Jun 2022 16:04:58 +0100 Subject: [PATCH] Add role status lights to screen filter picker --- .../[screenId]/screens/_components/ScreenListPanel.svelte | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenListPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenListPanel.svelte index feb2f754ff..40d9ab273d 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenListPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenListPanel.svelte @@ -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]} />