IO-2271 Country Region for Print Center
Hide reports based on Country Code for Region
This commit is contained in:
@@ -29,9 +29,12 @@ export function PrintCenterJobsComponent({ printCenterModal, bodyshop }) {
|
|||||||
})
|
})
|
||||||
.filter(
|
.filter(
|
||||||
(temp) =>
|
(temp) =>
|
||||||
!temp.regions || (temp.regions && temp.regions[bodyshop.region_config])
|
!temp.regions ||
|
||||||
|
(temp.regions && temp.regions[bodyshop.region_config]) ||
|
||||||
|
(temp.regions &&
|
||||||
|
bodyshop.region_config.includes(Object.keys(temp.regions)) === true)
|
||||||
);
|
);
|
||||||
|
|
||||||
const filteredJobsReportsList =
|
const filteredJobsReportsList =
|
||||||
search !== ""
|
search !== ""
|
||||||
? JobsReportsList.filter((r) =>
|
? JobsReportsList.filter((r) =>
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ export const TemplateList = (type, context) => {
|
|||||||
key: "casl_authorization",
|
key: "casl_authorization",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
group: "authorization",
|
group: "authorization",
|
||||||
|
regions: {
|
||||||
|
CA: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
fippa_authorization: {
|
fippa_authorization: {
|
||||||
title: i18n.t("printcenter.jobs.fippa_authorization"),
|
title: i18n.t("printcenter.jobs.fippa_authorization"),
|
||||||
|
|||||||
Reference in New Issue
Block a user