From f194657bd6defeafea420a1dffc9331e4d88c3c0 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Thu, 16 Mar 2023 15:53:30 +0300 Subject: [PATCH] Update entity background if preferences background changes Signed-off-by: Alex Andreev --- packages/core/src/main/cluster/update-entity-spec.injectable.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/main/cluster/update-entity-spec.injectable.ts b/packages/core/src/main/cluster/update-entity-spec.injectable.ts index 923b4724cc..419359ba4b 100644 --- a/packages/core/src/main/cluster/update-entity-spec.injectable.ts +++ b/packages/core/src/main/cluster/update-entity-spec.injectable.ts @@ -26,6 +26,7 @@ const updateEntitySpecInjectable = getInjectable({ if (cluster.preferences.icon) { entity.spec.icon ??= {}; entity.spec.icon.src = cluster.preferences.icon; + entity.spec.icon.background = cluster.preferences.iconBackgroundColor; } else if (cluster.preferences.icon === null) { /** * NOTE: only clear the icon if set to `null` by ClusterIconSettings.