1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-02-11 08:28:59 +02:00
parent 71c2bc69d9
commit f70b3cff11

View File

@ -35,14 +35,6 @@ export class KubeWatchApi {
contextReady = when(() => Boolean(this.context));
constructor() {
this.init();
}
private async init() {
await this.contextReady;
}
isAllowedApi(api: KubeApi): boolean {
return Boolean(this.context?.cluster.isAllowedResource(api.kind));
}