From 915a3f646d17dd0da39411dee8349f72abab1f47 Mon Sep 17 00:00:00 2001 From: laurenspriem Date: Fri, 3 May 2024 14:59:25 +0530 Subject: [PATCH] [mob][photos] Small fix --- mobile/lib/ui/viewer/people/people_app_bar.dart | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/mobile/lib/ui/viewer/people/people_app_bar.dart b/mobile/lib/ui/viewer/people/people_app_bar.dart index a2ded6c33..8e977cd68 100644 --- a/mobile/lib/ui/viewer/people/people_app_bar.dart +++ b/mobile/lib/ui/viewer/people/people_app_bar.dart @@ -278,9 +278,8 @@ class _AppBarWidgetState extends State { bool assignName = false; await showChoiceDialog( context, - title: "Do you want to name the person?", - firstButtonLabel: "Yes, name person", - secondButtonLabel: "No, unhide person only", + title: "Are you sure you want to unhide this person?", + firstButtonLabel: "Yes, unhide person", firstButtonOnTap: () async { try { await PersonService.instance @@ -292,17 +291,6 @@ class _AppBarWidgetState extends State { // await showGenericErrorDialog(context: context, error: e); } }, - secondButtonOnTap: () async { - try { - await PersonService.instance - .deletePerson(widget.person.remoteID, onlyMapping: false); - Bus.instance.fire(PeopleChangedEvent()); - Navigator.of(context).pop(); // Close the hidden page - } catch (e, s) { - _logger.severe('Unhiding a person failed', e, s); - // await showGenericErrorDialog(context: context, error: e); - } - }, ); if (assignName) { final result = await showAssignPersonAction(