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:
parent
f505e0a6c7
commit
f194657bd6
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user