From a35ffbd5bdfad9c7290296aea30b51609fe89ed6 Mon Sep 17 00:00:00 2001 From: umasoodch Date: Mon, 31 Oct 2022 15:00:00 +0300 Subject: [PATCH] fixed moe issues --- Mohem/src/app/eit/add-eit/add-eit.component.ts | 4 ++++ .../ui/card-filter/card-filter.component.ts | 11 ++++++++++- .../worklist-advanced-search.component.html | 2 +- .../worklist-advanced-search.component.ts | 5 ++++- .../edit-detail-profile.component.html | 2 +- Mohem/src/assets/localization/i18n.json | 14 +++++++------- 6 files changed, 27 insertions(+), 11 deletions(-) diff --git a/Mohem/src/app/eit/add-eit/add-eit.component.ts b/Mohem/src/app/eit/add-eit/add-eit.component.ts index 0a7e5666..2e626b59 100644 --- a/Mohem/src/app/eit/add-eit/add-eit.component.ts +++ b/Mohem/src/app/eit/add-eit/add-eit.component.ts @@ -122,6 +122,10 @@ export class AddEitComponent implements OnInit { EITTransactionsRequest.SUBMIT_EIT_ACTION ); } + + // window.addEventListener('keyboardDidShow', () => { + // document.activeElement.scrollIntoView(false); + // }); } ngOnInit() {} diff --git a/Mohem/src/app/hmg-common/ui/card-filter/card-filter.component.ts b/Mohem/src/app/hmg-common/ui/card-filter/card-filter.component.ts index c414bc98..8e522d69 100644 --- a/Mohem/src/app/hmg-common/ui/card-filter/card-filter.component.ts +++ b/Mohem/src/app/hmg-common/ui/card-filter/card-filter.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit, Input } from '@angular/core'; +import { TranslatorService } from 'src/app/hmg-common/services/translator/translator.service'; @Component({ selector: 'app-card-filter', @@ -11,8 +12,16 @@ export class CardFilterComponent implements OnInit { @Input() active: boolean; @Input() color: string; + direction: string; + constructor() { } - ngOnInit() {} + ngOnInit() { + this.direction = TranslatorService.getCurrentLanguageName(); + console.log(this.direction); + if (this.direction == 'ar') { + this.text = 'الموارد البشرية'; + } + } } diff --git a/Mohem/src/app/notification/worklist-advanced-search/worklist-advanced-search.component.html b/Mohem/src/app/notification/worklist-advanced-search/worklist-advanced-search.component.html index 1d5540c9..d52889c3 100644 --- a/Mohem/src/app/notification/worklist-advanced-search/worklist-advanced-search.component.html +++ b/Mohem/src/app/notification/worklist-advanced-search/worklist-advanced-search.component.html @@ -49,7 +49,7 @@ {{ts.trPK('vacation-rule','itemType')}} - HR + {{text}}