From 47b9209497ea544e943cd9c5c22b135144c50d89 Mon Sep 17 00:00:00 2001 From: enadhilal Date: Tue, 16 Nov 2021 11:45:11 +0300 Subject: [PATCH] fixed vacation rule issue --- .../vacation-type/vacation-type.component.html | 6 +++--- .../vacation-type/vacation-type.component.ts | 13 +++---------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.html b/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.html index 15900c2a..3d8f1032 100644 --- a/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.html +++ b/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.html @@ -33,9 +33,9 @@
- + +
diff --git a/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.ts b/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.ts index eeef7508..acc38009 100644 --- a/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.ts +++ b/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.ts @@ -26,7 +26,7 @@ import { WorkListReplacementRollComponent } from 'src/app/notification/work-list }) export class VacationTypeComponent implements OnInit { ruleTypeList: any; - index: any; + index = 'noType'; vactionRuleSelected:any =-1; notificationTypeSelected: number; notification_list: any; //// @@ -165,13 +165,11 @@ export class VacationTypeComponent implements OnInit { } - vacationRuleSel(event){ - this.vactionRuleSelected=event.detail.value; + vacationRuleSel(){ + this.vactionRuleSelected = this.index; if(this.notificationTypeShow){ - //this.notificationTypeShow = false this.notificationTypeShow = false this.notifTypeSelP2 = "*"; - //this.part3show = false } if (this.createVacationRuleShow){ this.createVacationRuleShow = false @@ -180,11 +178,6 @@ export class VacationTypeComponent implements OnInit { } - - - - - console.log("event: "+ event.detail.value); } notificationSel(event){