mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
should show resource if missing allowedResources data (#7274)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
cfce7ea67b
commit
8b93a52930
@ -699,6 +699,11 @@ export class Cluster implements ClusterModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
shouldShowResource(resource: KubeApiResourceDescriptor): boolean {
|
shouldShowResource(resource: KubeApiResourceDescriptor): boolean {
|
||||||
|
if (this.allowedResources.size === 0) {
|
||||||
|
// better to show than hide everything
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return this.allowedResources.has(formatKubeApiResource(resource));
|
return this.allowedResources.has(formatKubeApiResource(resource));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user