1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Update entity background if preferences background changes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2023-03-16 15:53:30 +03:00
parent f505e0a6c7
commit f194657bd6

View File

@ -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.