pending appointment can be cancelled but not be viewed
This commit is contained in:
@@ -175,6 +175,7 @@ class _BuildPatientsListState extends State<BuildPatientQueueList> {
|
|||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
//updateAccessAPICall(index, "approved");
|
//updateAccessAPICall(index, "approved");
|
||||||
|
if (widget.patientQueue[index].access == "approved") {
|
||||||
Patient selectedPatient;
|
Patient selectedPatient;
|
||||||
fetchPatients(widget.patientQueue[index].app_id).then(
|
fetchPatients(widget.patientQueue[index].app_id).then(
|
||||||
(result) {
|
(result) {
|
||||||
@@ -192,6 +193,9 @@ class _BuildPatientsListState extends State<BuildPatientQueueList> {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
noAccessWarning();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
buttonText: "View Patient Profile",
|
buttonText: "View Patient Profile",
|
||||||
buttonColor:
|
buttonColor:
|
||||||
@@ -321,7 +325,8 @@ class _BuildPatientsListState extends State<BuildPatientQueueList> {
|
|||||||
} else if (widget.patientQueue[index].access == "cancelled") {
|
} else if (widget.patientQueue[index].access == "cancelled") {
|
||||||
appointmentCancelledWarning();
|
appointmentCancelledWarning();
|
||||||
} else {
|
} else {
|
||||||
noAccessWarning();
|
viewConfirmationPopUp(index);
|
||||||
|
//noAccessWarning();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
trailing: Icon(
|
trailing: Icon(
|
||||||
|
|||||||
Reference in New Issue
Block a user