mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix setting up entity background
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
7e6e6976eb
commit
165d3b6b33
@ -23,8 +23,13 @@ const updateEntitySpecInjectable = getInjectable({
|
||||
entity.spec.metrics.prometheus = prometheus;
|
||||
}
|
||||
|
||||
entity.spec.icon ??= {};
|
||||
|
||||
if (cluster.preferences.iconBackgroundColor) {
|
||||
entity.spec.icon.background = cluster.preferences.iconBackgroundColor;
|
||||
}
|
||||
|
||||
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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user