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 (#11714)
This commit is contained in:
parent
30aa2c9b82
commit
b749a68349
1 changed files with 8 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue