Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Small fix

laurenspriem915a3f646d17
diff --git a/mobile/lib/ui/viewer/people/people_app_bar.dart b/mobile/lib/ui/viewer/people/people_app_bar.dart
index a2ded6c334..8e977cd683 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<PeopleAppBar> {
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<PeopleAppBar> {
// 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(