mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
* Fix: enhance face tagging confirmation and fix double label in checkboxes * fix code formatting --------- Co-authored-by: dvbthien <dvbthien@gmail.com>
This commit is contained in:
parent
c4df96bd72
commit
d22fb2d5db
3 changed files with 12 additions and 8 deletions
|
|
@ -279,12 +279,17 @@
|
|||
const data = getFaceCroppedCoordinates();
|
||||
if (!data) {
|
||||
notificationController.show({
|
||||
message: 'Error tagging face - cannot get bounding box coordinates',
|
||||
message: $t('error_tag_face_bounding_box'),
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const isConfirmed = await modalManager.showDialog({ prompt: `Do you want to tag this face as ${person.name}?` });
|
||||
const isConfirmed = await modalManager.showDialog({
|
||||
prompt: person.name
|
||||
? $t('confirm_tag_face', { values: { name: person.name } })
|
||||
: $t('confirm_tag_face_unnamed'),
|
||||
});
|
||||
|
||||
if (!isConfirmed) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,9 +60,7 @@
|
|||
{disabled}
|
||||
onCheckedChange={() => handleCheckboxChange(option.value)}
|
||||
/>
|
||||
<Label label={option.text} for="{option.value}-checkbox">
|
||||
{option.text}
|
||||
</Label>
|
||||
<Label label={option.text} for="{option.value}-checkbox" />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue