From cf732801a865c8f78a4b5e422254a254130862f4 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Thu, 6 Feb 2025 12:05:48 -0500 Subject: [PATCH] getting started tweaks (#835) --- ui/src/GettingStartedModal.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ui/src/GettingStartedModal.tsx b/ui/src/GettingStartedModal.tsx index 6c6076b2..d23211b4 100644 --- a/ui/src/GettingStartedModal.tsx +++ b/ui/src/GettingStartedModal.tsx @@ -2,6 +2,7 @@ import {modalStyle} from "./styling/theme.ts"; import {Box, Grid2, Modal, Typography} from "@mui/material"; import ClipboardText from "./ClipboardText.tsx"; import useApiConsoleStore from "./model/store.ts"; +import {useEffect} from "react"; interface GettingStartedModalProps { close: () => void; @@ -10,6 +11,13 @@ interface GettingStartedModalProps { const GettingStartedModal = ({ close, isOpen }: GettingStartedModalProps) => { const user = useApiConsoleStore(store => store.user); + const nodes = useApiConsoleStore(store => store.nodes); + + useEffect(() => { + if(nodes && nodes.length > 1) { + close(); + } + }, [nodes]); return ( @@ -29,7 +37,7 @@ const GettingStartedModal = ({ close, isOpen }: GettingStartedModalProps) => { - https://github.com/openziti/zrok/releases + https://github.com/openziti/zrok/releases @@ -80,7 +88,7 @@ const GettingStartedModal = ({ close, isOpen }: GettingStartedModalProps) => { Visit the Getting Started Guide - in the zrok Documentation for more help. + and the zrok Documentation for more help.