mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
106cf685bc
commit
7ce87e5bc9
1 file changed
+3
-2
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user