|
|
|
|
@ -57,9 +57,28 @@ class FooterActionButton {
|
|
|
|
|
case WorkOrderNextStepEnum.markedAsFixed:
|
|
|
|
|
break;
|
|
|
|
|
// TODO: Handle this case.
|
|
|
|
|
case WorkOrderNextStepEnum.endWorkFlow:
|
|
|
|
|
if (requestDetailProvider.isReadOnlyRequest) {
|
|
|
|
|
return footerContainer(
|
|
|
|
|
child: AppFilledButton(
|
|
|
|
|
label: context.translation.activities,
|
|
|
|
|
buttonColor: AppColor.neutral50,
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
Navigator.push(context, MaterialPageRoute(builder: (context) => const ActivitiesListView()));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return footerContainer(
|
|
|
|
|
child: AppFilledButton(
|
|
|
|
|
label: context.translation.close,
|
|
|
|
|
// maxWidth: true,
|
|
|
|
|
buttonColor: AppColor.primary10,
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
},
|
|
|
|
|
));
|
|
|
|
|
case WorkOrderNextStepEnum.nTakeAction:
|
|
|
|
|
// const SizedBox().flushBar(context: context, title: context.translation.youMarkedThisIssueAsFixedWaitingForTheRequesterToConfirm, message: '');
|
|
|
|
|
//Need to add enum for these values in future instead of static values..
|
|
|
|
|
if (requestDetailProvider.isReadOnlyRequest) {
|
|
|
|
|
return footerContainer(
|
|
|
|
|
child: AppFilledButton(
|
|
|
|
|
|