1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-04-21 23:38:34 +02:00

fix(web): hide import json button when using config file ()

This commit is contained in:
Michel Heusschen 2024-08-12 13:40:31 +02:00 committed by GitHub
parent 30aa2c9b82
commit b749a68349
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>