From 9b601570a523c4802b640d108b21856989c7e008 Mon Sep 17 00:00:00 2001 From: MadhuMosip Date: Fri, 22 Mar 2024 12:17:49 +0530 Subject: [PATCH 1/5] MOSIP-16525 changing calendar language dynamically Signed-off-by: MadhuMosip --- .../mater-data-common-body.component.html | 4 ++-- .../mater-data-common-body.component.ts | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.html b/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.html index e3da7828..3d46ba6a 100644 --- a/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.html +++ b/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.html @@ -264,7 +264,7 @@ matSuffix [for]="picker" > - +
@@ -626,7 +626,7 @@ [for]="picker1" [disabled]="!isEditable && id" > - +
diff --git a/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.ts b/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.ts index 63a7041f..8ad7f2b3 100644 --- a/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.ts +++ b/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.ts @@ -113,7 +113,6 @@ export class MaterDataCommonBodyComponent implements OnInit { this.url = this.router.url.split('/')[3]; this.fieldsCount = 0; this.primaryLangCode = this.headerService.getUserPreferredLanguage(); - this.dateAdapter.setLocale(defaultJson.keyboardMapping[this.primaryLangCode]); if(this.primaryLang === "ara"){ this.isPrimaryLangRTL = true; } @@ -299,6 +298,10 @@ export class MaterDataCommonBodyComponent implements OnInit { } + changeCalendarLang(lang:string){ + this.dateAdapter.setLocale(defaultJson.keyboardMapping[lang]); + } + @HostListener('document:keydown.escape', ['$event']) onKeydownHandler(event: KeyboardEvent) { if (this.keyboardService.isOpened) { this.keyboardService.dismiss(); From 06a33c40d52d5af9bb7937951758c99326e020ed Mon Sep 17 00:00:00 2001 From: MadhuMosip Date: Mon, 25 Mar 2024 13:06:11 +0530 Subject: [PATCH 2/5] MOSIP-16856 Removed the unwanted UI elements Signed-off-by: MadhuMosip --- .../mater-data-common-body.component.html | 4 ++-- .../features/resources/center/create/create.component.html | 2 +- .../app/features/resources/center/edit/edit.component.html | 2 +- .../app/features/resources/users/create/create.component.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.html b/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.html index 3d46ba6a..d71e37b1 100644 --- a/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.html +++ b/admin-ui/src/app/features/masterdata/shared/mater-data-common-body/mater-data-common-body.component.html @@ -420,7 +420,7 @@
- +
{{ "center.selectLanguage" | translate }} @@ -806,7 +806,7 @@
- +
{{ secondaryLangDisplay }} {{ "center.operational-details" | translate }}
- +