Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add person to image without faces

laurenspriem2fc5317dfa91
diff --git a/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart
index c94737c994..3f09c9f769 100644
--- a/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart
@@ -314,12 +314,18 @@ class _FacesItemWidgetState extends State<FacesItemWidget> {
Widget _buildNoFacesWidget() {
final reason = _errorReason ?? NoFacesReason.noFacesFound;
+ final showManualTagOption = flagService.manualTagFileToPerson &&
+ reason == NoFacesReason.noFacesFound;
+ final label = showManualTagOption
+ ? "No faces detected, tap to add."
+ : getNoFaceReasonText(context, reason);
return Expanded(
child: Padding(
padding: const EdgeInsets.only(right: 12, top: 8),
child: ChipButtonWidget(
- getNoFaceReasonText(context, reason),
+ label,
noChips: true,
+ onTap: showManualTagOption ? _openAddFilesToPersonPage : null,
),
),
);