Refactor / fix cluster view visibility (#2654)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-04-28 21:38:57 +03:00
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;
}