diff --git a/enclave-manager/web/package.json b/enclave-manager/web/package.json index 5fc899c0be..67cfeeb753 100644 --- a/enclave-manager/web/package.json +++ b/enclave-manager/web/package.json @@ -3,6 +3,7 @@ "version": "0.1.0", "private": true, "homepage": ".", + "proxy": "http://localhost:8081", "dependencies": { "@chakra-ui/icons": "^2.1.1", "@chakra-ui/react": "^2.8.1", diff --git a/enclave-manager/web/src/components/KurtosisAlert.tsx b/enclave-manager/web/src/components/KurtosisAlert.tsx index 1ae57e141a..629e794252 100644 --- a/enclave-manager/web/src/components/KurtosisAlert.tsx +++ b/enclave-manager/web/src/components/KurtosisAlert.tsx @@ -21,7 +21,7 @@ type KurtosisAlertProps = AlertProps & { export const KurtosisAlert = ({ message, details, ...alertProps }: KurtosisAlertProps) => { return ( - + @@ -40,7 +40,9 @@ export const KurtosisAlert = ({ message, details, ...alertProps }: KurtosisAlert - {details} + + {details} + diff --git a/enclave-manager/web/src/components/enclaves/modals/ConfigureEnclaveModal.tsx b/enclave-manager/web/src/components/enclaves/modals/ConfigureEnclaveModal.tsx index 180f90652a..0937ad42a7 100644 --- a/enclave-manager/web/src/components/enclaves/modals/ConfigureEnclaveModal.tsx +++ b/enclave-manager/web/src/components/enclaves/modals/ConfigureEnclaveModal.tsx @@ -10,7 +10,8 @@ import { ModalHeader, ModalOverlay, Text, - Tooltip, useToast, + Tooltip, + useToast, } from "@chakra-ui/react"; import { EnclaveMode } from "enclave-manager-sdk/build/engine_service_pb"; import { useMemo, useRef, useState } from "react"; @@ -152,6 +153,7 @@ export const ConfigureEnclaveModal = ({ const handleClose = () => { if (!isLoading) { navigator("#", { replace: true }); + setError(undefined); onClose(); } }; @@ -167,7 +169,9 @@ export const ConfigureEnclaveModal = ({ } } catch (err) { toast({ - title: `An error occurred while preparing data for running package. The package arguments were not proper JSON: ${stringifyError(err)}`, + title: `An error occurred while preparing data for running package. The package arguments were not proper JSON: ${stringifyError( + err, + )}`, colorScheme: "red", }); return; @@ -251,7 +255,7 @@ export const ConfigureEnclaveModal = ({ {isDefined(error) && ( - + )}