{#if !drawerLoading && can_write} {#if edit}
{ await PostgresTriggerService.setPostgresTriggerEnabled({ path: initialPath, workspace: $workspaceStore ?? '', requestBody: { enabled: e.detail } }) sendUserToast( `${e.detail ? 'enabled' : 'disabled'} postgres trigger ${initialPath}` ) }} />
{/if} {/if}
{#if drawerLoading}

Loading...

{:else} {#if edit} Changes can take up to 30 seconds to take effect. {:else} New postgres triggers can take up to 30 seconds to start listening. {/if}

Pick a script or flow to be triggered

{#if script_path === undefined && is_flow === false}
{/if}

Pick a database to connect to

{#if postgres_resource_path} {/if}
{/if}