1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-11-02 15:56:44 +03:00
parent 106cf685bc
commit 7ce87e5bc9

View File

@ -35,12 +35,12 @@ export type CatalogAddButtonProps = {
category: CatalogCategory
};
type categoryId = string;
type CategoryId = string;
@observer
export class CatalogAddButton extends React.Component<CatalogAddButtonProps> {
@observable protected isOpen = false;
@observable menuItems = new Map<categoryId, CatalogEntityAddMenu[]>();
@observable menuItems = new Map<CategoryId, CatalogEntityAddMenu[]>();
constructor(props: CatalogAddButtonProps) {
super(props);
@ -61,6 +61,7 @@ export class CatalogAddButton extends React.Component<CatalogAddButtonProps> {
return catalogCategoryRegistry.filteredItems;
}
@action
updateMenuItems() {
this.menuItems.clear();