{#if !loaded} {:else} {#if loadError}
{loadError}
{/if} {#if showForm}
{#if error}{/if}
{t('actions.provider')}
{#if actionTypes.length > 0}
{t('actions.actionType')}
{#if !editing}
{#each actionTypes as at} {/each}
{:else}

{form.action_type}

{/if}
{/if}
form.icon = v} /> nameManuallyEdited = true} required class="flex-1 px-3 py-2 border border-[var(--color-border)] rounded-md text-sm bg-[var(--color-background)]" />
{t('actions.schedule')}
{#if form.schedule_type === 'interval'}
{t('actions.seconds')}
{:else}

{t('actions.cronHint')}

{/if}
{#if editing}
{/if}
{/if} {#if !showForm && allActions.length > 0}
{/if} {#if allActions.length === 0 && !showForm} {:else if actions.length === 0 && !showForm} {:else if !showForm}
{#each actions as action}

{action.name}

{action.action_type}
{formatSchedule(action)} {action.rules?.length || 0} {t('actions.rules')} {#if action.last_run_status} {action.last_run_status} {/if}
executeAction(action.id)} disabled={executing[action.id]} /> executeAction(action.id, true)} disabled={executing[action.id]} /> historyActionId = historyActionId === action.id ? null : action.id} /> edit(action)} /> startDelete(action)} variant="danger" />
{#if historyActionId === action.id}
{/if}
{/each}
{/if} {/if} confirmDelete = null} />