testing fix

This commit is contained in:
2025-03-04 13:56:57 +02:00
parent 23dbe21a2c
commit b051082c9a
4 changed files with 61 additions and 56 deletions

View File

@@ -135,7 +135,8 @@ class MihMzansiCalendarApis {
if (response.statusCode == 200) {
Navigator.of(context).pop();
Navigator.of(context).pop();
if (inWaitingRoom) {
Navigator.of(context).pop();
if (inWaitingRoom == true && personalSelected == false) {
Navigator.of(context).pushNamed(
'/patient-manager',
arguments: PatManagerArguments(
@@ -150,7 +151,7 @@ class MihMzansiCalendarApis {
'/calendar',
arguments: CalendarArguments(
signedInUser,
false,
personalSelected,
business,
businessUser,
),
@@ -265,6 +266,7 @@ class MihMzansiCalendarApis {
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
String message =
"Your appointment \"$title\" for the $date $title has been deleted.";
@@ -391,7 +393,7 @@ class MihMzansiCalendarApis {
}),
);
if (response.statusCode == 200) {
// Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
String message =
@@ -453,7 +455,7 @@ class MihMzansiCalendarApis {
}),
);
if (response.statusCode == 200) {
// Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
String message =
@@ -515,13 +517,14 @@ class MihMzansiCalendarApis {
}),
);
if (response.statusCode == 200) {
// Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
String message =
"Your appointment \"$title\" has been updates to the $date $title.";
Navigator.pop(context);
// Navigator.pop(context);
Navigator.of(context).pushNamed(
'/patient-manager',
arguments: PatManagerArguments(

View File

@@ -252,6 +252,7 @@ class MihNotificationApis {
Navigator.of(context).pop();
Navigator.of(context).pop();
Navigator.of(context).pop();
Navigator.of(context).pop();
Navigator.of(context).pushNamed(
'/patient-manager',
arguments: PatManagerArguments(