mirror of
https://github.com/lensapp/lens.git
synced 2024-11-10 10:36:25 +03:00
Fix menu actions not opening in multiple places (#5799)
This commit is contained in:
parent
07c5de6e8e
commit
b16a419287
@ -95,7 +95,7 @@ class NonInjectedCatalogEntityDrawerMenu<T extends CatalogEntity> extends React.
|
||||
|
||||
return (
|
||||
<MenuActions
|
||||
id="menu-actions-for-catalog-entity-drawer-menu"
|
||||
id={`menu-actions-for-catalog-entity-drawer-menu-${entity.getId()}`}
|
||||
className={cssNames("CatalogEntityDrawerMenu", className)}
|
||||
toolbar
|
||||
{...menuProps}
|
||||
|
@ -198,7 +198,7 @@ class NonInjectedCatalog extends React.Component<Dependencies> {
|
||||
};
|
||||
|
||||
return (
|
||||
<MenuActions id="menu-actions-for-catalog" onOpen={onOpen}>
|
||||
<MenuActions id={`menu-actions-for-catalog-for-${entity.getId()}`} onOpen={onOpen}>
|
||||
<MenuItem
|
||||
key="open-details"
|
||||
onClick={() => this.props.catalogEntityStore.selectedItemId.set(entity.getId())}
|
||||
|
@ -103,7 +103,7 @@ const NonInjectedInstalledExtensions = observer(({ extensionDiscovery, extension
|
||||
),
|
||||
actions: (
|
||||
<MenuActions
|
||||
id="menu-actions-for-installed-extensions"
|
||||
id={`menu-actions-for-installed-extensions-for-${id}`}
|
||||
usePortal
|
||||
toolbar={false}>
|
||||
{isCompatible && (
|
||||
|
@ -78,7 +78,7 @@ class NonInjectedHelmReleaseMenu extends React.Component<HelmReleaseMenuProps &
|
||||
|
||||
return (
|
||||
<MenuActions
|
||||
id="menu-actions-for-release-menu"
|
||||
id={`menu-actions-for-release-menu-for-${release.getId()}`}
|
||||
{...menuProps}
|
||||
className={cssNames("HelmReleaseMenu", className)}
|
||||
removeAction={this.remove}
|
||||
|
@ -121,7 +121,7 @@ class NonInjectedPortForwardMenu<Props extends PortForwardMenuProps & Dependenci
|
||||
|
||||
return (
|
||||
<MenuActions
|
||||
id="menu-actions-for-port-forward-menu"
|
||||
id={`menu-actions-for-port-forward-menu-for-${this.props.portForward.getId()}`}
|
||||
{...menuProps}
|
||||
className={cssNames("PortForwardMenu", className)}
|
||||
removeAction={this.remove}
|
||||
|
@ -89,7 +89,7 @@ export class ClusterIconSetting extends React.Component<ClusterIconSettingProps>
|
||||
/>
|
||||
</div>
|
||||
<MenuActions
|
||||
id="menu-actions-for-cluster-icon-settings"
|
||||
id={`menu-actions-for-cluster-icon-settings-for-${entity.getId()}`}
|
||||
toolbar={false}
|
||||
autoCloseOnSelect={true}
|
||||
triggerIcon={{ material: "more_horiz" }}
|
||||
|
Loading…
Reference in New Issue
Block a user