1
0
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:
Janne Savolainen 2022-07-07 16:23:24 +03:00 committed by GitHub
parent 07c5de6e8e
commit b16a419287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -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}

View File

@ -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())}

View File

@ -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 && (

View File

@ -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}

View File

@ -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}

View File

@ -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" }}