mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Refactor / fix cluster view visibility (#2654)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
d7199fda8e
commit
41c9a355ed
6 files changed
+55
-45
No files matched your search
@@ -5,6 +5,7 @@ import "../../common/catalog-entities";
|
||||
|
||||
export class CatalogEntityRegistry {
|
||||
@observable protected _items: CatalogEntity[] = observable.array([], { deep: true });
|
||||
@observable protected _activeEntity: CatalogEntity;
|
||||
|
||||
constructor(private categoryRegistry: CatalogCategoryRegistry) {}
|
||||
|
||||
@@ -39,6 +40,14 @@ export class CatalogEntityRegistry {
|
||||
});
|
||||
}
|
||||
|
||||
set activeEntity(entity: CatalogEntity) {
|
||||
this._activeEntity = entity;
|
||||
}
|
||||
|
||||
get activeEntity() {
|
||||
return this._activeEntity;
|
||||
}
|
||||
|
||||
get items() {
|
||||
return this._items;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user