[mob][photos] Delete people and their mapping
This commit is contained in:
parent
68be7f69d8
commit
115f1bd42e
|
@ -228,7 +228,7 @@ class PersonService {
|
|||
personData.logStats();
|
||||
}
|
||||
|
||||
Future<void> deletePerson(String personID, {bool onlyMapping = true}) async {
|
||||
Future<void> deletePerson(String personID, {bool onlyMapping = false}) async {
|
||||
if (onlyMapping) {
|
||||
final PersonEntity? entity = await getPerson(personID);
|
||||
if (entity == null) {
|
||||
|
|
|
@ -259,7 +259,7 @@ class _FaceDebugSectionWidgetState extends State<FaceDebugSectionWidget> {
|
|||
sectionOptionSpacing,
|
||||
MenuItemWidget(
|
||||
captionedTextWidget: const CaptionedTextWidget(
|
||||
title: "Drop People to clusterMapping",
|
||||
title: "Drop People and clusterMapping",
|
||||
),
|
||||
pressedColor: getEnteColorScheme(context).fillFaint,
|
||||
trailingIcon: Icons.chevron_right_outlined,
|
||||
|
@ -269,7 +269,7 @@ class _FaceDebugSectionWidgetState extends State<FaceDebugSectionWidget> {
|
|||
context,
|
||||
title: "Are you sure?",
|
||||
body:
|
||||
"This won't delete the people, but will remove the mapping of people to clusters",
|
||||
"This will delete the people and all respective mappings of people to clusters",
|
||||
firstButtonLabel: "Yes, confirm",
|
||||
firstButtonOnTap: () async {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue