{#if !loaded}{:else} {#if showForm} {#if error}{/if} {t('commandConfig.name')} form.icon = v} /> {t('commandConfig.providerType')} {#if !editing} {:else} {form.provider_type} {/if} {#if hasCommands} {t('commandConfig.enabledCommands')} {#each providerCommands as cmd} toggleCmd(cmd.key)} /> /{cmd.key} {/each} {t('commandConfig.responseTemplate')} {t('commandConfig.responseMode')} {t('commandConfig.defaultCount')} {t('commandConfig.searchCooldown')} {t('commandConfig.defaultCooldown')} {:else} {t('commandConfig.noCommandsForProvider')} {/if} {submitting ? t('common.loading') : (editing ? t('common.save') : t('common.create'))} {/if} {#if !showForm && allCmdConfigs.length > 0}
{form.provider_type}
{t('commandConfig.enabledCommands')}
{cfg.name}