diff --git a/documentation/docs/configuration/immich_integration.md b/documentation/docs/configuration/immich_integration.md index 117fd31..a8b2ae1 100644 --- a/documentation/docs/configuration/immich_integration.md +++ b/documentation/docs/configuration/immich_integration.md @@ -20,7 +20,7 @@ To integrate Immich with AdventureLog, you need to have an Immich server running - Click `New API Key` and name it something like `AdventureLog`. - Copy the generated API Key, you will need it in the next step. 2. Go to the AdventureLog web interface, click on your user profile picture, go to `Settings` and scroll down to the `Immich Integration` section. - - Enter the URL of your Immich server, e.g. `https://immich.example.com`. + - Enter the URL of your Immich server, e.g. `https://immich.example.com`. Note that `localhost` or `127.0.0.1` will probably not work because Immich and AdventureLog are running on different docker networks. It is recommended to use the IP address of the server where Immich is running ex `http://my-server-ip:port` or a domain name. - Paste the API Key you obtained in the previous step. - Click `Enable Immich` to save the settings. 3. Now, when you are adding images to an adventure, you will see an option to search for images in Immich or upload from an album. diff --git a/frontend/src/lib/components/NoteModal.svelte b/frontend/src/lib/components/NoteModal.svelte index 8344984..a895f33 100644 --- a/frontend/src/lib/components/NoteModal.svelte +++ b/frontend/src/lib/components/NoteModal.svelte @@ -188,7 +188,7 @@

{#if !isReadOnly} - + {:else if note}

= newYearsStart && today <= newYearsEnd) { return { diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 9aaa4b2..a7e668e 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -514,6 +514,8 @@ "api_key": "Immich API Key", "enable_immich": "Enable Immich", "update_integration": "Update Integration", - "immich_integration": "Immich Integration" + "immich_integration": "Immich Integration", + "localhost_note": "Note: localhost will most likely not work unless you have setup docker networks accordingly. It is recommended to use the IP address of the server or the domain name.", + "documentation": "Immich Integration Documentation" } } diff --git a/frontend/src/routes/settings/+page.svelte b/frontend/src/routes/settings/+page.svelte index 5b2c305..6c2b97f 100644 --- a/frontend/src/routes/settings/+page.svelte +++ b/frontend/src/routes/settings/+page.svelte @@ -433,6 +433,11 @@

{$t('immich.immich_desc')} + {$t('immich.documentation')}

{#if immichIntegration}
@@ -469,6 +474,11 @@ {$t('immich.api_note')}

{/if} + {#if newImmichIntegration.server_url && (newImmichIntegration.server_url.indexOf('localhost') !== -1 || newImmichIntegration.server_url.indexOf('127.0.0.1') !== -1)} +

+ {$t('immich.localhost_note')} +

+ {/if}