mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Restrict extension version of ClusterStore (#2256)
This commit is contained in:
1 parent
4529b1ec33
commit
a4ba77c58b
3 files changed
+14
-14
No files matched your search
@@ -25,7 +25,7 @@ export class ClusterStore extends Singleton {
|
||||
* Set active cluster id
|
||||
*/
|
||||
set activeClusterId(id : ClusterId) {
|
||||
internalClusterStore.activeCluster = id;
|
||||
internalClusterStore.setActive(id);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,12 +38,8 @@ export class ClusterStore extends Singleton {
|
||||
/**
|
||||
* Get active cluster (a cluster which is currently visible)
|
||||
*/
|
||||
get activeCluster(): Cluster {
|
||||
if (!this.activeClusterId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return this.getById(this.activeClusterId);
|
||||
get activeCluster(): Cluster | null {
|
||||
return internalClusterStore.active;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -104,7 +100,7 @@ export class ClusterStore extends Singleton {
|
||||
* @param model cluster
|
||||
*/
|
||||
async removeCluster(model: ClusterModel) {
|
||||
return this.removeById(model.id);
|
||||
return internalClusterStore.removeById(model.id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user