{#if module.value.type === 'script'} {#if customUi?.tagEdit != false}
dispatch('tagChange', e.detail)} /> {/if} {:else if module.value.type === 'flow'}
{ if (module.value.type == 'flow') { $flowEditorDrawer?.openDrawer(module.value.path, () => { dispatch('reload') sendUserToast('Flow has been updated') }) } }} startIcon={{ icon: Pen }} iconOnly={false} > Edit
{ dispatch('reload') }} startIcon={{ icon: RefreshCcw }} iconOnly={true} /> {/if} {#if module.value.type === 'aiagent' && customUi?.tagEdit != false}
dispatch('tagChange', e.detail)} /> {/if} {#if module.value.type === 'rawscript'}
dispatch('tagChange', e.detail)} />
dispatch('createScriptFromInlineScript') } ]} /> {/if}