pending appointment can be cancelled but not be viewed
This commit is contained in:
parent
1a6df221a5
commit
6a17372e7a
1 changed files with 23 additions and 18 deletions
|
|
@ -175,6 +175,7 @@ class _BuildPatientsListState extends State<BuildPatientQueueList> {
|
|||
child: MIHButton(
|
||||
onTap: () {
|
||||
//updateAccessAPICall(index, "approved");
|
||||
if (widget.patientQueue[index].access == "approved") {
|
||||
Patient selectedPatient;
|
||||
fetchPatients(widget.patientQueue[index].app_id).then(
|
||||
(result) {
|
||||
|
|
@ -192,6 +193,9 @@ class _BuildPatientsListState extends State<BuildPatientQueueList> {
|
|||
});
|
||||
},
|
||||
);
|
||||
} else {
|
||||
noAccessWarning();
|
||||
}
|
||||
},
|
||||
buttonText: "View Patient Profile",
|
||||
buttonColor:
|
||||
|
|
@ -321,7 +325,8 @@ class _BuildPatientsListState extends State<BuildPatientQueueList> {
|
|||
} else if (widget.patientQueue[index].access == "cancelled") {
|
||||
appointmentCancelledWarning();
|
||||
} else {
|
||||
noAccessWarning();
|
||||
viewConfirmationPopUp(index);
|
||||
//noAccessWarning();
|
||||
}
|
||||
},
|
||||
trailing: Icon(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue