From 22fda28720b940f061012eb16709aa2db9d822b0 Mon Sep 17 00:00:00 2001 From: Sudeep7353 <103890430+Sudeep7353@users.noreply.github.com> Date: Thu, 19 Dec 2024 19:48:47 +0530 Subject: [PATCH] MOSIP:37899 - APi review comment changes (#1049) * MOSIP:37899 - APi review comment changes Signed-off-by: sudeep * MOSIP:37899 - APi review comment changes Signed-off-by: sudeep --------- Signed-off-by: sudeep --- pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js | 2 +- .../src/pages/partner/deviceProviderServices/AddSbi.js | 2 +- pmp-revamp-ui/src/pages/partner/ftmProviderServices/AddFtm.js | 2 +- pmp-revamp-ui/src/pages/partner/policies/RequestPolicy.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js b/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js index 9ea8b069..c232a1c5 100644 --- a/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js +++ b/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js @@ -67,7 +67,7 @@ function ApproveRejectPopup({ popupData, closePopUp, approveRejectResponse, titl sbiId: popupData.sbiId, deviceDetailId: popupData.deviceId, status: status === "approved" ? 'Activate' : 'De-activate' - }, "mosip.pms.mapping.device.to.sbi.post", true); + }, "mosip.pms.approval.mapping.device.to.sbi.post", true); const url = getPartnerManagerUrl(`/devicedetail/${popupData.deviceId}/approval`, process.env.NODE_ENV); diff --git a/pmp-revamp-ui/src/pages/partner/deviceProviderServices/AddSbi.js b/pmp-revamp-ui/src/pages/partner/deviceProviderServices/AddSbi.js index 45605605..0204937c 100644 --- a/pmp-revamp-ui/src/pages/partner/deviceProviderServices/AddSbi.js +++ b/pmp-revamp-ui/src/pages/partner/deviceProviderServices/AddSbi.js @@ -78,7 +78,7 @@ function AddSbi() { const fetchData = async () => { try { setDataLoaded(false); - const response = await HttpService.get(getPartnerManagerUrl('/partners/approved-device-provider-ids', process.env.NODE_ENV)); + const response = await HttpService.get(getPartnerManagerUrl('/partners/v4?status=approved&partnerType=Device_Provider', process.env.NODE_ENV)); if (response) { const responseData = response.data; if (responseData && responseData.response) { diff --git a/pmp-revamp-ui/src/pages/partner/ftmProviderServices/AddFtm.js b/pmp-revamp-ui/src/pages/partner/ftmProviderServices/AddFtm.js index 9826820f..a5e0a863 100644 --- a/pmp-revamp-ui/src/pages/partner/ftmProviderServices/AddFtm.js +++ b/pmp-revamp-ui/src/pages/partner/ftmProviderServices/AddFtm.js @@ -117,7 +117,7 @@ function AddFtm() { const fetchData = async () => { try { setDataLoaded(false); - const response = await HttpService.get(getPartnerManagerUrl('/partners/approved-ftm-provider-ids', process.env.NODE_ENV)); + const response = await HttpService.get(getPartnerManagerUrl('/partners/v4?status=approved&partnerType=FTM_Provider', process.env.NODE_ENV)); if (response) { const responseData = response.data; if (responseData && responseData.response) { diff --git a/pmp-revamp-ui/src/pages/partner/policies/RequestPolicy.js b/pmp-revamp-ui/src/pages/partner/policies/RequestPolicy.js index 32fac190..ef87631e 100644 --- a/pmp-revamp-ui/src/pages/partner/policies/RequestPolicy.js +++ b/pmp-revamp-ui/src/pages/partner/policies/RequestPolicy.js @@ -80,7 +80,7 @@ function RequestPolicy() { const fetchData = async () => { try { setDataLoaded(false); - const response = await HttpService.get(getPartnerManagerUrl('/partners/approved-partner-ids-with-policy-groups', process.env.NODE_ENV)); + const response = await HttpService.get(getPartnerManagerUrl('/partners/v4?status=approved&policyGroupAvailable=true', process.env.NODE_ENV)); if (response) { const responseData = response.data; if (responseData && responseData.response) {