1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

address review comments

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann 2022-01-05 18:17:11 -05:00
parent 9ebbe5b84f
commit be1503ccf0
2 changed files with 2 additions and 6 deletions

View File

@ -83,7 +83,7 @@ export class PortForwardMenu extends React.Component<Props> {
return (
<>
{ Boolean(portForward.status === "Active") &&
{ portForward.status === "Active" &&
<MenuItem onClick={() => openPortForward(portForward)}>
<Icon material="open_in_browser" interactive={toolbar} tooltip="Open in browser" />
<span className="title">Open</span>

View File

@ -88,10 +88,6 @@ export class PortForwardDialog extends Component<Props> {
this.desiredPort = this.currentPort;
};
onClose = async () => {
await (async () => dialogState.onClose())();
};
changePort = (value: string) => {
this.desiredPort = Number(value);
};
@ -187,7 +183,7 @@ export class PortForwardDialog extends Component<Props> {
isOpen={dialogState.isOpen}
className={cssNames("PortForwardDialog", className)}
onOpen={this.onOpen}
onClose={this.onClose}
onClose={dialogState.onClose}
close={this.close}
>
<Wizard header={header} done={this.close}>