Ask doc disabled for LiveCare appointments

merge-update-with-lab-changes
haroon amjad 3 years ago
parent b92e45aa93
commit 657248803f

@ -72,7 +72,7 @@ class _AppointmentActionsState extends State<AppointmentActions> {
padding: EdgeInsets.all(21),
shrinkWrap: true,
itemBuilder: (context, index) {
bool shouldEnable = ((widget.appo.clinicID == 17 || widget.appo.clinicID == 47) && appoButtonsList[index].caller == "openReschedule");
bool shouldEnable = ((widget.appo.clinicID == 17 || widget.appo.clinicID == 47) || (widget.appo.isLiveCareAppointment && appoButtonsList[index].caller == "askDoc") || appoButtonsList[index].caller == "openReschedule");
return InkWell(
onTap: shouldEnable
? null

Loading…
Cancel
Save