Skip to content

Commit

Permalink
fix: Fix the enclave connect button and modal help string in the EM UI (
Browse files Browse the repository at this point in the history
#2127)

## Description:
The enclave connect button was the wrong one in the EM UI. Updated to
one corresponding to the action.

## Is this change user facing?
YES

## References (if applicable):
#2117
  • Loading branch information
laurentluce authored Feb 6, 2024
1 parent d33de7b commit a11fb4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const ConnectEnclaveModal = ({ isOpen, onClose, enclave, instanceUUID }:
<FileDisplay value={commands} title={"CLI Commands"} filename={`${enclave.name}--connect.sh`} />
</ModalBody>
<ModalFooter>
The enclave inspect command shows you the ephemeral port to use to connect to your user service.
The enclave inspect command shows you the ephemeral ports to use to connect to your user services.
</ModalFooter>
</ModalContent>
</Modal>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button, ButtonProps, Tooltip } from "@chakra-ui/react";
import { useState } from "react";
import { FiTrash2 } from "react-icons/fi";
import { FiLink2 } from "react-icons/fi";
import { EnclaveFullInfo } from "../../types";
import { ConnectEnclaveModal } from "../modals/ConnectEnclaveModal";

Expand All @@ -17,7 +17,7 @@ export const ConnectEnclaveButton = ({ enclave, instanceUUID, ...buttonProps }:
<Tooltip label={`Steps to connect to this enclave from the CLI.`} openDelay={1000}>
<Button
colorScheme={"green"}
leftIcon={<FiTrash2 />}
leftIcon={<FiLink2 />}
onClick={() => setShowModal(true)}
size={"sm"}
variant={"solid"}
Expand Down

0 comments on commit a11fb4c

Please sign in to comment.