mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Don't override entity source on cluster icons (#3928)
This commit is contained in:
parent
f2c623f89e
commit
8b1de233f2
@ -131,11 +131,11 @@ export class ClusterManager extends Singleton {
|
|||||||
entity.spec.metrics.prometheus = prometheus;
|
entity.spec.metrics.prometheus = prometheus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only set the icon if the preference is set. If the preference is not set
|
||||||
|
// then let the source determine if a cluster has an icon.
|
||||||
if (cluster.preferences.icon) {
|
if (cluster.preferences.icon) {
|
||||||
entity.spec.icon ??= {};
|
entity.spec.icon ??= {};
|
||||||
entity.spec.icon.src = cluster.preferences.icon;
|
entity.spec.icon.src = cluster.preferences.icon;
|
||||||
} else {
|
|
||||||
entity.spec.icon = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
catalogEntityRegistry.items.splice(index, 1, entity);
|
catalogEntityRegistry.items.splice(index, 1, entity);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user