From ac20d1f121cb4ac5b186cd3369321ac243e7bee9 Mon Sep 17 00:00:00 2001 From: umasoodch Date: Mon, 18 Oct 2021 16:29:25 +0300 Subject: [PATCH] rearranged worklist tabs --- .../app/notification/home/home.component.ts | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/Mohem/src/app/notification/home/home.component.ts b/Mohem/src/app/notification/home/home.component.ts index e2d0b088..28867e3a 100644 --- a/Mohem/src/app/notification/home/home.component.ts +++ b/Mohem/src/app/notification/home/home.component.ts @@ -91,9 +91,9 @@ export class HomeComponent implements OnInit { data: [0, 0, 0, 0, 0, 0], backgroundColor: [ '#18a169', - '#38c9b3', - '#114475', '#3cb9d5', + '#114475', + '#38c9b3', '#cc3232', '#9e7e97' ], @@ -119,10 +119,10 @@ export class HomeComponent implements OnInit { }, { value: 0, - name: 'PO', + name: 'MO', active: false, - color: '#38c9b3', - key: 'POAPPRV', + color: '#3cb9d5', + key: 'INVMOA', disable: false }, { @@ -135,10 +135,10 @@ export class HomeComponent implements OnInit { }, { value: 0, - name: 'MR', + name: 'PO', active: false, - color: '#3cb9d5', - key: 'INVMOA', + color: '#38c9b3', + key: 'POAPPRV', disable: false }, { @@ -158,6 +158,7 @@ export class HomeComponent implements OnInit { disable: false } ]; + public slideOptsOne = { slidesPerView: 4.3, spaceBetween: 10 @@ -236,9 +237,9 @@ export class HomeComponent implements OnInit { this.ngZone.run(() => { this.filters[0].value = this.worklistNotifications.P_OPEN_NTF_NUMBER; this.filters[1].value = this.totalHR; - this.filters[2].value = this.totalPO; + this.filters[2].value = this.totalMR; this.filters[3].value = this.totalPR; - this.filters[4].value = this.totalMR; + this.filters[4].value = this.totalPO; this.filters[6].value = this.totalIC; }); @@ -269,14 +270,14 @@ export class HomeComponent implements OnInit { if (notification.ITEM_TYPE === 'HRSSA') { this.filters[1].value = this.totalHR; this.data.datasets[0].data[0] = notification.OPEN_NTF_NUMBER; - } else if (notification.ITEM_TYPE === 'POAPPRV') { - this.filters[2].value = this.totalPO; + } else if (notification.ITEM_TYPE === 'INVMOA') { + this.filters[2].value = this.totalMR; this.data.datasets[0].data[1] = notification.OPEN_NTF_NUMBER; } else if (notification.ITEM_TYPE === 'REQAPPRV') { this.filters[3].value = this.totalPR; this.data.datasets[0].data[2] = notification.OPEN_NTF_NUMBER; - } else if (notification.ITEM_TYPE === 'INVMOA') { - this.filters[4].value = this.totalMR; + } else if (notification.ITEM_TYPE === 'POAPPRV') { + this.filters[4].value = this.totalPO; this.data.datasets[0].data[3] = notification.OPEN_NTF_NUMBER; } else if (notification.ITEM_TYPE === 'INVITEM') { this.filters[6].value = this.totalIC;