diff --git a/pmp-revamp-ui/public/i18n/ara.json b/pmp-revamp-ui/public/i18n/ara.json index c50ac211..91987dd5 100644 --- a/pmp-revamp-ui/public/i18n/ara.json +++ b/pmp-revamp-ui/public/i18n/ara.json @@ -1165,6 +1165,7 @@ "PMS_DEVICE_ERROR_024": "لا يمكن الموافقة على هذا الجهاز لأنه لا يوجد لديه أي SBI مرتبط به.", "PMS_DEVICE_ERROR_025": "لا يمكن رفض هذا الجهاز لأنه لا يوجد لديه أي SBI مرتبط به.", "PMS_DEVICE_ERROR_026": "يجب أن تكون حالة الطلب إلغاء التنشيط", + "PMS_DEVICE_ERROR_027": "يجب أن تكون حالة الطلب إما معتمدة أو مرفوضة", "PMS_SF_ERROR_001": "حدث خطأ أثناء جلب قائمة الأجهزة لـ SBI.", "PMS_SBI_ERROR_001": "غير قادر على جلب تفاصيل الهيئة الفرعية للتنفيذ.", "PMS_REQUEST_ERROR_001": "طلب غير صالح.", diff --git a/pmp-revamp-ui/public/i18n/eng.json b/pmp-revamp-ui/public/i18n/eng.json index b12d3272..76972322 100644 --- a/pmp-revamp-ui/public/i18n/eng.json +++ b/pmp-revamp-ui/public/i18n/eng.json @@ -1160,6 +1160,7 @@ "PMS_DEVICE_ERROR_024": "This device cannot be approved as it does not have any SBI associated to it.", "PMS_DEVICE_ERROR_025": "This device cannot be rejected as it does not have any SBI associated to it.", "PMS_DEVICE_ERROR_026": "Request status should be De-Activate", + "PMS_DEVICE_ERROR_027": "Request status should be either approved or rejected", "PMS_SF_ERROR_001": "Error while fetching devices list for SBI.", "PMS_SBI_ERROR_001": "Unable to fetch SBI details.", "PMS_REQUEST_ERROR_001": "Invalid request.", diff --git a/pmp-revamp-ui/public/i18n/fra.json b/pmp-revamp-ui/public/i18n/fra.json index f3a21197..5e78db04 100644 --- a/pmp-revamp-ui/public/i18n/fra.json +++ b/pmp-revamp-ui/public/i18n/fra.json @@ -1165,6 +1165,7 @@ "PMS_DEVICE_ERROR_024": "Cet appareil ne peut pas être approuvé car il n'a aucun SBI qui lui est associé.", "PMS_DEVICE_ERROR_025": "Cet appareil ne peut pas être rejeté car aucun SBI ne lui est associé.", "PMS_DEVICE_ERROR_026": "Le statut de la demande doit être Désactiver", + "PMS_DEVICE_ERROR_027": "Le statut de la demande doit être approuvé ou rejeté", "PMS_SF_ERROR_001": "Erreur lors de la récupération de la liste des appareils pour SBI.", "PMS_SBI_ERROR_001": "Impossible de récupérer les détails SBI.", "PMS_REQUEST_ERROR_001": "Requête invalide.", diff --git a/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js b/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js index 96b72f4a..93461c1e 100644 --- a/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js +++ b/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js @@ -66,8 +66,7 @@ function ApproveRejectPopup({ popupData, closePopUp, approveRejectResponse, titl const request = createRequest({ partnerId: popupData.partnerId, sbiId: popupData.sbiId, - deviceDetailId: popupData.deviceId, - status: status === "approved" ? 'Activate' : 'De-activate' + status: status }, "mosip.pms.approval.mapping.device.to.sbi.post", true); const url = getPartnerManagerUrl(`/devicedetail/${popupData.deviceId}/approval`, process.env.NODE_ENV);