Skip to content

Commit 8a2f2b7

Browse files
committed
improve instruction for using tags
1 parent d7a9383 commit 8a2f2b7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

resources/js/components/forms/photo/PhotoTagDialog.vue

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
<Dialog v-model:visible="visible" pt:root:class="border-none" modal :dismissable-mask="true">
33
<template #container="{ closeCallback }">
44
<div class="p-9 text-center text-muted-color">
5-
<p class="mb-5 text-sm/4">
5+
<p class="text-sm/8">
66
{{ question }}
7+
<br />
8+
<span class="text-muted-color-emphasis"
9+
><i class="text-warning-600 pi pi-exclamation-triangle mr-2" />Press Enter to confirm each tag.</span
10+
>
711
</p>
812
<div class="my-3 first:mt-0 last:mb-0">
913
<AutoComplete
@@ -40,7 +44,6 @@ import { sprintf } from "sprintf-js";
4044
import { useToast } from "primevue/usetoast";
4145
import Button from "primevue/button";
4246
import Dialog from "primevue/dialog";
43-
import { trans } from "laravel-vue-i18n";
4447
import Checkbox from "primevue/checkbox";
4548
import AutoComplete from "primevue/autocomplete";
4649
@@ -60,9 +63,9 @@ const toast = useToast();
6063
6164
const question = computed(() => {
6265
if (props.photo) {
63-
return trans("lychee.PHOTO_NEW_TAGS");
66+
return sprintf("Enter your tags for this photo.");
6467
}
65-
return sprintf(trans("lychee.PHOTOS_NEW_TAGS"), props.photoIds?.length);
68+
return sprintf("Enter your tags for all %d selected photos. Existing tags will be overwritten.", props.photoIds?.length);
6669
});
6770
6871
const shallOverride = ref(false);

0 commit comments

Comments
 (0)