Skip to content

Commit

Permalink
MOSIP-36311: Integrated server side pagination and sorting with v3 en… (
Browse files Browse the repository at this point in the history
#850)

* MOSIP-36311: Added separate state variables for sorting and pagination

Signed-off-by: SwethaKrish4 <[email protected]>

* MOSIP-36311: Added separate state variables for sorting and pagination

Signed-off-by: SwethaKrish4 <[email protected]>

* MOSIP-36311: Added separate state variables for sorting and pagination

Signed-off-by: SwethaKrish4 <[email protected]>

---------

Signed-off-by: SwethaKrish4 <[email protected]>
  • Loading branch information
SwethaKrish4 authored Oct 21, 2024
1 parent 9c00644 commit fb4cc16
Show file tree
Hide file tree
Showing 14 changed files with 129 additions and 227 deletions.
3 changes: 2 additions & 1 deletion pmp-reactjs-ui/public/i18n/ara.json
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,8 @@
"selectPartnerType": "حدد نوع الشريك",
"selectEmailAddress": "حدد عنوان البريد الإلكتروني",
"selectPolicyGroup": "حدد مجموعة السياسات",
"selectStatus": "حدد الحالة"
"selectStatus": "حدد الحالة",
"errorInPartnersList": "أثناء جلب تفاصيل الشركاء، واجهنا خطأً."
},
"viewPartnerDetails": {
"viewPartnerDetails": "عرض تفاصيل الشريك",
Expand Down
3 changes: 2 additions & 1 deletion pmp-reactjs-ui/public/i18n/eng.json
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,8 @@
"selectPartnerType": "Select Partner Type",
"selectEmailAddress": "Select Email Address",
"selectPolicyGroup": "Select Policy Group",
"selectStatus": "Select Status"
"selectStatus": "Select Status",
"errorInPartnersList": "While fetching partners details, we have encountered with an error."
},
"viewPartnerDetails": {
"viewPartnerDetails": "View Partner Details",
Expand Down
3 changes: 2 additions & 1 deletion pmp-reactjs-ui/public/i18n/fra.json
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,8 @@
"selectPartnerType":"Sélectionnez le type de partenaire",
"selectEmailAddress": "Sélectionnez l'adresse e-mail",
"selectPolicyGroup":"Sélectionnez un groupe de stratégies",
"selectStatus":"Sélectionnez le statut"
"selectStatus":"Sélectionnez le statut",
"errorInPartnersList": "Lors de la récupération des détails des partenaires, nous avons rencontré une erreur."
},
"viewPartnerDetails": {
"viewPartnerDetails": "Afficher les détails du partenaire",
Expand Down
4 changes: 3 additions & 1 deletion pmp-reactjs-ui/src/nav/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ function SideNav({ open, policyRequiredPartnerTypes, partnerType }) {
setActiveIcon('ftmChipProviderServices');
} else if (selectedPath.includes('rootTrustCertificateList')) {
setActiveIcon("rootOfTrustCertificate");
} else if (selectedPath.includes('partnersList')) {
setActiveIcon("partner");
}
else {
setActiveIcon("home");
Expand Down Expand Up @@ -90,7 +92,7 @@ function SideNav({ open, policyRequiredPartnerTypes, partnerType }) {
navigate('/partnermanagement/admin/certificates/rootTrustCertificateList');
};
const showPartner = () => {
setActiveIcon("partner");
navigate('/partnermanagement/admin/partnersList');
};
const showAdminPolicies = () => {
setActiveIcon("admin_policies");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function RootTrustCertificateList() {
<div className="bg-[#FCFCFC] w-full mt-1 rounded-t-xl shadow-lg pt-3">
<FilterButtons
listTitle="rootTrustCertificate.listOfCertificates"
dataList={filteredCertificateData}
dataListLength={filteredCertificateData.length}
filter={filter}
onResetFilter={onResetFilter}
setFilter={setFilter}
Expand Down Expand Up @@ -478,7 +478,7 @@ function RootTrustCertificateList() {
</div>
</div>
<Pagination
dataList={filteredCertificateData}
dataListLength={filteredCertificateData.length}
selectedRecordsPerPage={selectedRecordsPerPage}
setSelectedRecordsPerPage={setSelectedRecordsPerPage}
setFirstIndex={setFirstIndex}
Expand Down
Loading

0 comments on commit fb4cc16

Please sign in to comment.