mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(mobile): After editing people name, back button close the app (#18992)
* fix: update dialog to not use root navigator in multiple pages so back button won't close the app * Remove unrelated changes to PR
This commit is contained in:
parent
75c24f0023
commit
e88eb44aba
3 changed files with 3 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ class PeopleCollectionPage extends HookConsumerWidget {
|
||||||
) {
|
) {
|
||||||
return showDialog(
|
return showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
|
useRootNavigator: false,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return PersonNameEditForm(personId: personId, personName: personName);
|
return PersonNameEditForm(personId: personId, personName: personName);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ class PersonResultPage extends HookConsumerWidget {
|
||||||
showEditNameDialog() {
|
showEditNameDialog() {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
|
useRootNavigator: false,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return PersonNameEditForm(
|
return PersonNameEditForm(
|
||||||
personId: personId,
|
personId: personId,
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ class PeopleInfo extends ConsumerWidget {
|
||||||
) {
|
) {
|
||||||
return showDialog(
|
return showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
|
useRootNavigator: false,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return PersonNameEditForm(personId: personId, personName: personName);
|
return PersonNameEditForm(personId: personId, personName: personName);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue