diff --git a/Mohem/src/app/hmg-common/ui/stats-button/stats-button.component.scss b/Mohem/src/app/hmg-common/ui/stats-button/stats-button.component.scss index 995c5284..0663997a 100644 --- a/Mohem/src/app/hmg-common/ui/stats-button/stats-button.component.scss +++ b/Mohem/src/app/hmg-common/ui/stats-button/stats-button.component.scss @@ -29,7 +29,7 @@ .titleBox { display: block; span { - font-size: 30px; + font-size: 25px; font-weight: bold; color: black; text-align: left; diff --git a/Mohem/src/app/home/home.page.ts b/Mohem/src/app/home/home.page.ts index c526e729..14ad0659 100644 --- a/Mohem/src/app/home/home.page.ts +++ b/Mohem/src/app/home/home.page.ts @@ -737,7 +737,7 @@ export class HomePage implements OnInit { this.accrualBalancesList = result.GetAccrualBalancesList; for (const accrualBalance of result.GetAccrualBalancesList) { if (accrualBalance.ACCURAL_PLAN_NAME === 'HMG Annual Vacation Accrual Plan') { - this.statsButtons[3].statsValue = accrualBalance.ACCRUAL_NET_ENTITLEMENT; + this.statsButtons[3].statsValue = parseInt(accrualBalance.ACCRUAL_NET_ENTITLEMENT.toFixed(2)); this.common.sharedService.setSharedData(accrualBalance, 'leaveAccrualBalance'); this.common.sharedService.setSharedData(request, 'leaveAccrualBalanceDate'); this.common.sharedService.setSharedData(this.accrualBalancesList, 'tickitsbalance'); @@ -745,7 +745,7 @@ export class HomePage implements OnInit { totalTicketsLeft = totalTicketsLeft + accrualBalance.ACCRUAL_NET_ENTITLEMENT; } } - this.statsButtons[4].statsValue = totalTicketsLeft; + this.statsButtons[4].statsValue = parseInt(totalTicketsLeft.toFixed(2)); } }); } diff --git a/Mohem/src/app/offersdiscount/home/home.component.html b/Mohem/src/app/offersdiscount/home/home.component.html index c95b9e3e..27292915 100644 --- a/Mohem/src/app/offersdiscount/home/home.component.html +++ b/Mohem/src/app/offersdiscount/home/home.component.html @@ -32,9 +32,10 @@
-
+
- + +

{{key.categoryName_en}}

diff --git a/Mohem/src/app/offersdiscount/home/home.component.ts b/Mohem/src/app/offersdiscount/home/home.component.ts index 5761a81e..d38415bb 100644 --- a/Mohem/src/app/offersdiscount/home/home.component.ts +++ b/Mohem/src/app/offersdiscount/home/home.component.ts @@ -5,7 +5,7 @@ import { CommonService } from 'src/app/hmg-common/services/common/common.service import { TranslatorService } from 'src/app/hmg-common/services/translator/translator.service'; import { OfferDiscountService } from '../services/service'; import { IonInfiniteScroll } from '@ionic/angular'; - +import { DomSanitizer} from '@angular/platform-browser'; @Component({ selector: 'app-home', templateUrl: './home.component.html', @@ -32,7 +32,8 @@ export class HomeComponent implements AfterViewInit { public modalController: ModalController, public cs: CommonService, public offersService: OfferDiscountService, - public route: ActivatedRoute) { + public route: ActivatedRoute, + private sanitizer: DomSanitizer) { this.route .params.subscribe(val => { @@ -60,6 +61,9 @@ export class HomeComponent implements AfterViewInit { getCategories() { this.offersService.getCategories({}).subscribe((result) => { this.categories = JSON.parse(result.Mohemm_ITG_ResponseItem).result.data; //result.result.data; + for (let i = 0; i < this.categories.length; i++) { + this.categories[i].content = this.sanitizer.bypassSecurityTrustHtml(this.categories[i].content); + } this.cs.sharedService.setSharedData(this.categories, OfferDiscountService.categories); }); }