High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): hide import json button when using config file (#11714)
Michel Heusschenb749a6834979
diff --git a/web/src/routes/admin/system-settings/+page.svelte b/web/src/routes/admin/system-settings/+page.svelteindex eff9336121..0555bab256 100644--- a/web/src/routes/admin/system-settings/+page.svelte+++ b/web/src/routes/admin/system-settings/+page.svelte@@ -187,12 +187,14 @@{$t('export_as_json')}</div></LinkButton>- <LinkButton on:click={() => inputElement?.click()}>- <div class="flex place-items-center gap-2 text-sm">- <Icon path={mdiUpload} size="18" />- {$t('import_from_json')}- </div>- </LinkButton>+ {#if !$featureFlags.configFile}+ <LinkButton on:click={() => inputElement?.click()}>+ <div class="flex place-items-center gap-2 text-sm">+ <Icon path={mdiUpload} size="18" />+ {$t('import_from_json')}+ </div>+ </LinkButton>+ {/if}</div><AdminSettings bind:config let:handleReset bind:handleSave let:savedConfig let:defaultConfig>