my profile and accural balance

sultan-q3
Sultan Khan 4 years ago
parent 918d30f04b
commit 1ca6158b1f

@ -65,8 +65,10 @@ export class HomeComponent implements OnInit {
this.cs.openEitListPage();
} else if (menuEntry.REQUEST_TYPE === 'BASIC_DETAILS') {
this.cs.openProfile('basicDetails');
} else if (menuEntry.REQUEST_TYPE === 'ADDRESS') {
this.cs.openProfile('address');
} else if (menuEntry.REQUEST_TYPE === 'ADDRESS' || menuEntry.REQUEST_TYPE === 'PHONE_NUMBERS') {
this.cs.openProfile('contact');
} else if (menuEntry.REQUEST_TYPE === 'CONTACT') {
this.cs.openProfile('family');
}
if (menuEntry.REQUEST_TYPE === 'PAYSLIP') {
this.cs.openPayslipPage();

@ -372,7 +372,9 @@ export class HomePage implements OnInit {
this.openNotificationsDashbored();
this.showOpenMissingSwipes();
this.showAttendanceTracking();
this.getAccrualBalance();
var accrualBalance = this.common.sharedService.getSharedData('leaveAccrualBalance', false);
if (!accrualBalance)
this.getAccrualBalance();
}
public Vacation_Rule() {

@ -117,14 +117,14 @@
</ion-grid>
</div>
<br><br>
<div style="display: flex; justify-content: center;">
<br>
<!-- <div style="display: flex; justify-content: center;">
<div [ngClass]='profileProgress > 0 && profileProgress >= 25 ? "profile-green":"profile-gray"'></div>
<div [ngClass]='profileProgress >= 25 && profileProgress >= 50 ? "profile-green":"profile-gray"'></div>
<div [ngClass]='profileProgress >= 50 && profileProgress >= 75? "profile-green":"profile-gray"'></div>
<div [ngClass]='profileProgress >= 85 ? "profile-green":"profile-gray"'></div>
</div>
<div [ngClass]='direction === "ltr"? "profile-compilation-en":"profile-compilation-ar"'>{{ts.trPK('userProfile','profile-compitation')}} {{profileProgress}}%</div>
</div> -->
<!-- <div [ngClass]='direction === "ltr"? "profile-compilation-en":"profile-compilation-ar"'>{{ts.trPK('userProfile','profile-compitation')}} {{profileProgress}}%</div> -->
<div *ngIf="familyMemberSegment" [ngClass]='direction === "ltr"? "profile-note-en":"profile-note-ar"'>{{ts.trPK('userProfile','note-part-1')}}<br>
{{ts.trPK('userProfile','note-part-2')}}</div>

@ -86,22 +86,29 @@ export class HomeComponent implements OnInit {
this.basicDetailsSegment = false;
this.addressSegment = false;
this.familyMemberSegment = false;
this.contactSegment = false;
this.familyMemberSegment = false;
} else if (this.targetValue === 'basicDetails') {
this.personalInfoSegment = false;
this.basicDetailsSegment = true;
this.addressSegment = false;
this.familyMemberSegment = false;
} else if (this.targetValue === 'address') {
this.personalInfoSegment = false;
this.basicDetailsSegment = false;
this.addressSegment = true;
this.familyMemberSegment = false;
} else if (this.targetValue === 'fmaily') {
} else if (this.targetValue === 'family') {
this.personalInfoSegment = false;
this.basicDetailsSegment = false;
this.addressSegment = false;
this.familyMemberSegment = true;
} else {
} else if (this.targetValue == 'contact') {
this.personalInfoSegment = false;
this.basicDetailsSegment = false;
this.addressSegment = true;
this.editBasic = false;
this.editAddress = false;
this.familyMemberSegment = false;
this.contactSegment = true;
}
else {
this.personalInfoSegment = true;
this.basicDetailsSegment = false;
this.addressSegment = false;

Loading…
Cancel
Save