mirror of
https://github.com/immich-app/immich.git
synced 2025-03-11 02:23:09 -05:00
chore(web): tag creation hint (#12142)
* chore(web): tag creation hint * use FormatMessage * use correct format * use correct css class * copywriting
This commit is contained in:
parent
1736887f96
commit
3316acb71f
2 changed files with 12 additions and 0 deletions
|
@ -7,6 +7,8 @@
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import { getAllTags, type TagResponseDto } from '@immich/sdk';
|
import { getAllTags, type TagResponseDto } from '@immich/sdk';
|
||||||
import Icon from '$lib/components/elements/icon.svelte';
|
import Icon from '$lib/components/elements/icon.svelte';
|
||||||
|
import { AppRoute } from '$lib/constants';
|
||||||
|
import FormatMessage from '$lib/components/i18n/format-message.svelte';
|
||||||
|
|
||||||
export let onTag: (tagIds: string[]) => void;
|
export let onTag: (tagIds: string[]) => void;
|
||||||
export let onCancel: () => void;
|
export let onCancel: () => void;
|
||||||
|
@ -38,6 +40,15 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<FullScreenModal title={$t('tag_assets')} icon={mdiTag} onClose={onCancel}>
|
<FullScreenModal title={$t('tag_assets')} icon={mdiTag} onClose={onCancel}>
|
||||||
|
<div class="text-sm">
|
||||||
|
<p>
|
||||||
|
<FormatMessage key="tag_not_found_question" let:message>
|
||||||
|
<a href={AppRoute.TAGS} class="text-immich-primary dark:text-immich-dark-primary underline">
|
||||||
|
{message}
|
||||||
|
</a>
|
||||||
|
</FormatMessage>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
<form on:submit|preventDefault={handleSubmit} autocomplete="off" id="create-tag-form">
|
<form on:submit|preventDefault={handleSubmit} autocomplete="off" id="create-tag-form">
|
||||||
<div class="my-4 flex flex-col gap-2">
|
<div class="my-4 flex flex-col gap-2">
|
||||||
<Combobox
|
<Combobox
|
||||||
|
|
|
@ -1176,6 +1176,7 @@
|
||||||
"tag_assets": "Tag assets",
|
"tag_assets": "Tag assets",
|
||||||
"tag_created": "Created tag: {tag}",
|
"tag_created": "Created tag: {tag}",
|
||||||
"tag_feature_description": "Browsing photos and videos grouped by logical tag topics",
|
"tag_feature_description": "Browsing photos and videos grouped by logical tag topics",
|
||||||
|
"tag_not_found_question": "Cannot find a tag? Create one <link>here</link>",
|
||||||
"tag_updated": "Updated tag: {tag}",
|
"tag_updated": "Updated tag: {tag}",
|
||||||
"tagged_assets": "Tagged {count, plural, one {# asset} other {# assets}}",
|
"tagged_assets": "Tagged {count, plural, one {# asset} other {# assets}}",
|
||||||
"tags": "Tags",
|
"tags": "Tags",
|
||||||
|
|
Loading…
Add table
Reference in a new issue