diff --git a/frontend/src/components/Diagram.jsx b/frontend/src/components/Diagram.jsx index 4abcf92..f4ced64 100644 --- a/frontend/src/components/Diagram.jsx +++ b/frontend/src/components/Diagram.jsx @@ -31,6 +31,7 @@ function Diagram() { const [selectedEdge, setSelectedEdge] = useState(null); const [diagramName, setDiagramName] = useState(null); const [diagramList, setDiagramList] = useState([]); + const isIframe = window.self !== window.top; useEffect(() => { let isMounted = true; @@ -239,29 +240,33 @@ function Diagram() { - + {!isIframe && ( + <> + - - + + - + - + - + + + )} {showForm && ( @@ -306,4 +311,4 @@ function Diagram() { ); } -export default Diagram; +export default Diagram; \ No newline at end of file