diff --git a/src/lib/components/automations/FolderDropdown.svelte b/src/lib/components/automations/FolderDropdown.svelte deleted file mode 100644 index 6e731ba310..0000000000 --- a/src/lib/components/automations/FolderDropdown.svelte +++ /dev/null @@ -1,148 +0,0 @@ - - - ({ value: folder.id, label: folderName(folder) }))} - placeholder={$i18n.t('Choose folder')} - {align} - {side} - triggerClass="relative h-8 max-w-[11rem] flex items-center gap-1.5 px-2.5 py-1.5 bg-transparent rounded-2xl text-xs font-normal text-gray-600 transition hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100" - contentClass="w-72 shadow-lg" - maxHeight="18rem" - onChange={() => onChange()} - onClose={() => { - folderSearch = ''; - }} -> - - - - {folderLabel} - - - {#if folder_id} - { - folder_id = ''; - folderSearch = ''; - onChange(); - }} - aria-label={$i18n.t('Clear')} - > - - - {:else} - - {/if} - - - - - - - - - {#if folderOptions.length > 0} - - - {$i18n.t('Folders')} - - {/if} - - {#each filteredFolderOptions as folder (folder.id)} - {@const path = folderPath(folder)} - { - selectItem({ - value: folder_id === folder.id ? '' : folder.id, - label: folder_id === folder.id ? $i18n.t('Choose folder') : folderName(folder) - }); - folderSearch = ''; - }} - > - - - {folderName(folder)} - {#if path} - - {path} - - {/if} - - {#if folder_id === folder.id} - - {/if} - - {:else} - - {folderOptions.length > 0 ? $i18n.t('No results found') : $i18n.t('No folders')} - - {/each} - - diff --git a/src/lib/components/automations/TerminalDropdown.svelte b/src/lib/components/automations/TerminalDropdown.svelte deleted file mode 100644 index 5e058f10d0..0000000000 --- a/src/lib/components/automations/TerminalDropdown.svelte +++ /dev/null @@ -1,118 +0,0 @@ - - -{#if terminalServers.length > 0} - - - - {terminalLabel} - - - - - - - - {$i18n.t('Terminal')} - - - {#each terminalServers as server (server.id)} - { - if (terminalServerId === server.id) { - terminalServerId = ''; - terminalCwd = ''; - } else { - terminalServerId = server.id; - } - showDropdown = false; - onChange(); - }} - > - - - {server.name || server.id} - - {#if terminalServerId === server.id} - - - - - - {/if} - - {/each} - - {#if terminalServerId} - - - {$i18n.t('Working Directory')} - - - e.stopPropagation()} - on:input={onChange} - /> - - - {/if} - - -{/if}