1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-06 03:46:47 +01:00

Fix storage template extension display (#2002)

* Display correct jpg file extension

* Fix typo in template directory

* Move storage template to correct spelling
This commit is contained in:
Jonathan Jogenfors 2023-03-15 20:39:29 +01:00 committed by GitHub
parent 08ed71e51e
commit 54831878e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -57,7 +57,7 @@
const substitutions: Record<string, string> = { const substitutions: Record<string, string> = {
filename: 'IMAGE_56437', filename: 'IMAGE_56437',
ext: 'jpeg', ext: 'jpg',
filetype: 'IMG', filetype: 'IMG',
filetypefull: 'IMAGE' filetypefull: 'IMAGE'
}; };
@ -179,7 +179,7 @@
> >
<span class="text-immich-fg/25 dark:text-immich-dark-fg/50" <span class="text-immich-fg/25 dark:text-immich-dark-fg/50"
>UPLOAD_LOCATION/{user.id}</span >UPLOAD_LOCATION/{user.id}</span
>/{parsedTemplate()}.jpeg >/{parsedTemplate()}.jpg
</p> </p>
<form autocomplete="off" class="flex flex-col" on:submit|preventDefault> <form autocomplete="off" class="flex flex-col" on:submit|preventDefault>
@ -210,7 +210,7 @@
<SettingInputField <SettingInputField
label="EXTENSION" label="EXTENSION"
inputType={SettingInputFieldType.TEXT} inputType={SettingInputFieldType.TEXT}
value={'.jpeg'} value={'.jpg'}
disabled disabled
/> />
</div> </div>

View file

@ -4,7 +4,7 @@
import OAuthSettings from '$lib/components/admin-page/settings/oauth/oauth-settings.svelte'; import OAuthSettings from '$lib/components/admin-page/settings/oauth/oauth-settings.svelte';
import PasswordLoginSettings from '$lib/components/admin-page/settings/password-login/password-login-settings.svelte'; import PasswordLoginSettings from '$lib/components/admin-page/settings/password-login/password-login-settings.svelte';
import SettingAccordion from '$lib/components/admin-page/settings/setting-accordion.svelte'; import SettingAccordion from '$lib/components/admin-page/settings/setting-accordion.svelte';
import StorageTemplateSettings from '$lib/components/admin-page/settings/storate-template/storage-template-settings.svelte'; import StorageTemplateSettings from '$lib/components/admin-page/settings/storage-template/storage-template-settings.svelte';
import LoadingSpinner from '$lib/components/shared-components/loading-spinner.svelte'; import LoadingSpinner from '$lib/components/shared-components/loading-spinner.svelte';
import { api } from '@api'; import { api } from '@api';
import type { PageData } from './$types'; import type { PageData } from './$types';