From c35069c4fddacaaa13f207682db87adba72b2874 Mon Sep 17 00:00:00 2001
From: Anil_Kumar_Majji <106086523+Anil-kumar-Majji@users.noreply.github.com>
Date: Tue, 17 Dec 2024 18:30:13 +0530
Subject: [PATCH] MOSIP-38272, MOSIP-38276, MOSIP-38352: Resolved the bugs.
(#1037)
Signed-off-by: Anil_Kumar_Majji <106086523+Anil-kumar-Majji@users.noreply.github.com>
---
.../src/pages/admin/policyManager/CreatePolicy.js | 13 +++++++++----
.../admin/policyManager/DeactivatePolicyPopup.js | 2 +-
.../policyRequests/ViewPolicyRequestDetails.js | 6 +++---
pmp-revamp-ui/src/pages/common/EmptyList.js | 4 ++--
4 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/pmp-revamp-ui/src/pages/admin/policyManager/CreatePolicy.js b/pmp-revamp-ui/src/pages/admin/policyManager/CreatePolicy.js
index e4cf2fd3e..937f8a400 100644
--- a/pmp-revamp-ui/src/pages/admin/policyManager/CreatePolicy.js
+++ b/pmp-revamp-ui/src/pages/admin/policyManager/CreatePolicy.js
@@ -2,7 +2,7 @@ import { useState, useEffect, useRef } from "react";
import { useNavigate, useBlocker } from "react-router-dom";
import { useTranslation } from "react-i18next";
import { getUserProfile } from "../../../services/UserProfileService";
-import { isLangRTL } from "../../../utils/AppUtils";
+import { isLangRTL, onPressEnterKey } from "../../../utils/AppUtils";
import { getPolicyManagerUrl, handleServiceErrors, getPolicyGroupList, createRequest, trimAndReplace, handleFileChange } from '../../../utils/AppUtils';
import { HttpService } from '../../../services/HttpService';
import LoadingIcon from "../../common/LoadingIcon";
@@ -248,7 +248,7 @@ function CreatePolicy() {
const successcustomStyle = {
outerDiv: `flex justify-end max-w-7xl my-5 absolute ${isLoginLanguageRTL ? "left-0.5" : "right-0.5"}`,
innerDiv: "flex justify-between items-center rounded-xl max-w-[35rem] min-h-14 min-w-80 p-4"
- }
+ }
const onFileChangeEvent = (event) => {
handleFileChange(event, setErrorCode, setErrorMsg, setSuccessMsg, setPolicyData, t);
@@ -262,7 +262,7 @@ function CreatePolicy() {
{dataLoaded && (
<>
{errorMsg && (
-
{errorHeaderMsg}
diff --git a/pmp-revamp-ui/src/pages/admin/policyRequests/ViewPolicyRequestDetails.js b/pmp-revamp-ui/src/pages/admin/policyRequests/ViewPolicyRequestDetails.js index b71c0187e..179154370 100644 --- a/pmp-revamp-ui/src/pages/admin/policyRequests/ViewPolicyRequestDetails.js +++ b/pmp-revamp-ui/src/pages/admin/policyRequests/ViewPolicyRequestDetails.js @@ -69,7 +69,7 @@ function ViewPolicyRequestDetails() { {policyRequestDetails.partnerType}{t("viewPolicyRequest.organisation")}
@@ -79,7 +79,7 @@ function ViewPolicyRequestDetails() {{t("viewPolicyRequest.policyId")}
@@ -87,7 +87,7 @@ function ViewPolicyRequestDetails() { {policyRequestDetails.policyId}{t("viewPolicyRequest.policyName")}
diff --git a/pmp-revamp-ui/src/pages/common/EmptyList.js b/pmp-revamp-ui/src/pages/common/EmptyList.js index f2d16ca15..936823328 100644 --- a/pmp-revamp-ui/src/pages/common/EmptyList.js +++ b/pmp-revamp-ui/src/pages/common/EmptyList.js @@ -7,9 +7,9 @@ function EmptyList({tableHeaders, showCustomButton, customButtonName,buttonId, o <>