Skip to content

Commit

Permalink
MOSIP-37899: Updated status as approved/rejected (#1055)
Browse files Browse the repository at this point in the history
Signed-off-by: Swetha K <[email protected]>
Co-authored-by: Swetha K <[email protected]>
  • Loading branch information
SwethaKrish4 and Swetha K authored Dec 20, 2024
1 parent edacf95 commit e615f30
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions pmp-revamp-ui/public/i18n/ara.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "طلب غير صالح.",
Expand Down
1 change: 1 addition & 0 deletions pmp-revamp-ui/public/i18n/eng.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
1 change: 1 addition & 0 deletions pmp-revamp-ui/public/i18n/fra.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
3 changes: 1 addition & 2 deletions pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e615f30

Please sign in to comment.