|
|
|
@ -91,12 +91,14 @@ class CreateRequestModel {
|
|
|
|
if (Provider.of<SettingProvider>(context, listen: false).engineerCanCreateCM) {
|
|
|
|
if (Provider.of<SettingProvider>(context, listen: false).engineerCanCreateCM) {
|
|
|
|
list.add(CreateRequestModel(context.translation.correctiveMaintenance, "add_icon", CreateNewRequest.id));
|
|
|
|
list.add(CreateRequestModel(context.translation.correctiveMaintenance, "add_icon", CreateNewRequest.id));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
list.add(CreateRequestModel(context.translation.task, "add_icon", CreateTaskView.id));
|
|
|
|
//TODO uncommit this to enable task.
|
|
|
|
|
|
|
|
// list.add(CreateRequestModel(context.translation.task, "add_icon", CreateTaskView.id));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
list.add(CreateRequestModel(context.translation.correctiveMaintenance, "add_icon", CreateNewRequest.id));
|
|
|
|
list.add(CreateRequestModel(context.translation.correctiveMaintenance, "add_icon", CreateNewRequest.id));
|
|
|
|
list.add(CreateRequestModel(context.translation.gasRefill, "add_icon", GasRefillRequestForm.routeName));
|
|
|
|
list.add(CreateRequestModel(context.translation.gasRefill, "add_icon", GasRefillRequestForm.routeName));
|
|
|
|
list.add(CreateRequestModel(context.translation.transferAsset, "add_icon", CreateDeviceTransferRequest.id));
|
|
|
|
list.add(CreateRequestModel(context.translation.transferAsset, "add_icon", CreateDeviceTransferRequest.id));
|
|
|
|
list.add(CreateRequestModel(context.translation.task, "add_icon", CreateTaskView.id));
|
|
|
|
//TODO uncommit this to enable task.
|
|
|
|
|
|
|
|
// list.add(CreateRequestModel(context.translation.task, "add_icon", CreateTaskView.id));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return list;
|
|
|
|
return list;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|