mow fixed issues

MOE_DEV
umasoodch 3 years ago
parent b6d6c49618
commit 5517a9817a

@ -62,7 +62,7 @@
</ion-item> --> </ion-item> -->
<div *ngFor="let menu of menuList"> <div *ngFor="let menu of menuList">
<ion-item (click)="oepnMyRequest(menu)" *ngIf="menu.REQUEST_GROUP_NAME =='MBL_RG_01' && menu.MENU_TYPE =='E'"> <ion-item (click)="oepnMyRequest(menu)" *ngIf="menu.MENU_TYPE =='E'">
<ion-thumbnail slot="start" class="menu-thumb"> <ion-thumbnail slot="start" class="menu-thumb">
<img style= "height: 20px !important;" src="../assets/imgs/my-request.png" item-left> <img style= "height: 20px !important;" src="../assets/imgs/my-request.png" item-left>
</ion-thumbnail> </ion-thumbnail>
@ -185,7 +185,7 @@
</ion-item> --> </ion-item> -->
<div *ngFor="let menu of menuList"> <div *ngFor="let menu of menuList">
<ion-item (click)="oepnMyRequest(menu)" *ngIf="menu.REQUEST_GROUP_NAME =='MBL_RG_01' && menu.MENU_TYPE =='E'"> <ion-item (click)="oepnMyRequest(menu)" *ngIf="menu.MENU_TYPE =='E'">
<ion-thumbnail slot="start" class="menu-thumb"> <ion-thumbnail slot="start" class="menu-thumb">
<img style= "height: 20px !important;" src="../assets/imgs/my-request.png" item-left> <img style= "height: 20px !important;" src="../assets/imgs/my-request.png" item-left>
</ion-thumbnail> </ion-thumbnail>

@ -222,6 +222,7 @@ export class AppComponent implements OnInit {
this.events.subscribe('myTeamFlag', myTeamFlag => { this.events.subscribe('myTeamFlag', myTeamFlag => {
this.TeamFlag = myTeamFlag; this.TeamFlag = myTeamFlag;
this.menuList = this.cs.sharedService.getSharedData(MenuResponse.MENU_LIST, false); this.menuList = this.cs.sharedService.getSharedData(MenuResponse.MENU_LIST, false);
console.log(this.menuList);
}); });
} }

@ -18,6 +18,7 @@
.iconBox img{ .iconBox img{
margin: 0px auto 10px; margin: 0px auto 10px;
display: block; display: block;
width: 35px;
// max-width: 35%; // max-width: 35%;
} }

@ -372,7 +372,8 @@ export class HomePage implements OnInit {
callDashboardServices() { callDashboardServices() {
this.getMenu(); this.getMenu();
this.setServicesPrivilage(); this.statsButtons[1].show = true;
// this.setServicesPrivilage();
if (this.common.getTotalNumberOfWorklistRequest()) { if (this.common.getTotalNumberOfWorklistRequest()) {
this.statsButtons[0].statsValue = this.common.getTotalNumberOfWorklistRequest(); this.statsButtons[0].statsValue = this.common.getTotalNumberOfWorklistRequest();
this.showLoader = false; this.showLoader = false;
@ -384,7 +385,7 @@ export class HomePage implements OnInit {
//this.showAttendanceTracking(); //this.showAttendanceTracking();
//var accrualBalance = this.common.sharedService.getSharedData('leaveAccrualBalance', false); //var accrualBalance = this.common.sharedService.getSharedData('leaveAccrualBalance', false);
// if (!accrualBalance) // if (!accrualBalance)
// this.getAccrualBalance(); this.getAccrualBalance();
} }
public Vacation_Rule() { public Vacation_Rule() {
@ -427,6 +428,8 @@ export class HomePage implements OnInit {
if (this.menuList[i].MENU_TYPE === 'M') { if (this.menuList[i].MENU_TYPE === 'M') {
this.events.publish('myTeamFlag', 'true'); this.events.publish('myTeamFlag', 'true');
// this.common.sharedService.setSharedData('true', "myTeamFlag"); // this.common.sharedService.setSharedData('true', "myTeamFlag");
} else {
this.events.publish('myTeamFlag', 'false');
} }
} }

Loading…
Cancel
Save