address review comments

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

No files matched your search

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