show different no access message when pending or declined
This commit is contained in:
parent
a2ec41fb13
commit
6e4a172ab9
1 changed files with 17 additions and 8 deletions
|
|
@ -236,13 +236,22 @@ class _BuildPatientsListState extends State<BuildPatientAccessList> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void noAccessWarning() {
|
void noAccessWarning(int index) {
|
||||||
|
if (widget.patientAccesses[index].status == "pending") {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return const MIHWarningMessage(warningType: "No Access");
|
return const MIHWarningMessage(warningType: "No Access");
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
showDialog(
|
||||||
|
context: context,
|
||||||
|
builder: (context) {
|
||||||
|
return const MIHWarningMessage(warningType: "Access Declined");
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasAccessToProfile(int index) {
|
bool hasAccessToProfile(int index) {
|
||||||
|
|
@ -417,7 +426,7 @@ class _BuildPatientsListState extends State<BuildPatientAccessList> {
|
||||||
});
|
});
|
||||||
patientProfileChoicePopUp(index, p);
|
patientProfileChoicePopUp(index, p);
|
||||||
} else {
|
} else {
|
||||||
noAccessWarning();
|
noAccessWarning(index);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
trailing: Icon(
|
trailing: Icon(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue