diff --git a/flowchart/src/App.svelte b/flowchart/src/App.svelte index 2975af8..69cd77c 100644 --- a/flowchart/src/App.svelte +++ b/flowchart/src/App.svelte @@ -18,6 +18,9 @@ if (params.get('iframe') === 'true') { fcState.isIframeMode = true; } + if (params.get('readonly') === 'true') { + fcState.isReadonly = true; + } // Listen to messages from parent window window.addEventListener('message', (event) => { @@ -72,9 +75,14 @@
+ {#if !fcState.isReadonly} + {/if} + + + {#if !fcState.isReadonly}
@@ -89,6 +97,7 @@
+ {/if}