Change icon and reorder

This commit is contained in:
laurenspriem
2025-05-30 17:41:40 +05:30
parent 0d95f8c5a2
commit f869483c68

View File

@@ -249,6 +249,23 @@ class _AppBarWidgetState extends State<PeopleAppBar> {
],
),
),
if (widget.person.data.email != null &&
(widget.person.data.email == Configuration.instance.getEmail()))
PopupMenuItem(
value: PeoplePopupAction.reassignMe,
child: Row(
children: [
const Icon(Icons.person_2_outlined),
const Padding(
padding: EdgeInsets.all(8),
),
Text(
context.l10n.reassignMe,
style: textTheme.bodyBold,
),
],
),
),
PopupMenuItem(
value: PeoplePopupAction.removeLabel,
child: Row(
@@ -264,23 +281,6 @@ class _AppBarWidgetState extends State<PeopleAppBar> {
],
),
),
if (widget.person.data.email != null &&
(widget.person.data.email == Configuration.instance.getEmail()))
PopupMenuItem(
value: PeoplePopupAction.reassignMe,
child: Row(
children: [
const Icon(Icons.delete_outline),
const Padding(
padding: EdgeInsets.all(8),
),
Text(
context.l10n.reassignMe,
style: textTheme.bodyBold,
),
],
),
),
],
);
} else {