|
|
|
|
@ -20,7 +20,7 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
constructor(private cs: CommonService, private ts: TranslatorService) {
|
|
|
|
|
this.menu = this.cs.sharedService.getSharedData('menuEntries', false);
|
|
|
|
|
this.selMenu = this.cs.sharedService.getSharedData(MenuResponse.SHARED_DATA, false);
|
|
|
|
|
let title: string = this.ts.trPK('eit', 'my-requests');
|
|
|
|
|
const title: string = this.ts.trPK('eit', 'my-requests');
|
|
|
|
|
this.headerTitle = this.selMenu.List_Menu.MENU_NAME ? this.selMenu.List_Menu.MENU_NAME : title;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -29,12 +29,12 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
openPage(page, index) {
|
|
|
|
|
// Reset the content nav to have just this page
|
|
|
|
|
// we wouldn't want the back button to show in this scenario
|
|
|
|
|
if (page.children.length == 0) {
|
|
|
|
|
if (page.children.length === 0) {
|
|
|
|
|
this.goToRequest(page);
|
|
|
|
|
} else {
|
|
|
|
|
if (this.selectedMenu == 0) {
|
|
|
|
|
if (this.selectedMenu === 0) {
|
|
|
|
|
this.selectedMenu = -1;
|
|
|
|
|
} else if (this.selectedMenu != -1) {
|
|
|
|
|
} else if (this.selectedMenu !== -1) {
|
|
|
|
|
this.selectedMenu = -1;
|
|
|
|
|
} else {
|
|
|
|
|
this.selectedMenu = index;
|
|
|
|
|
@ -47,12 +47,12 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
selMenu = this.cs.sharedService.getSharedData(MenuResponse.SHARED_DATA, false);
|
|
|
|
|
selMenu.GetMenuEntriesList = menuEntry;
|
|
|
|
|
this.cs.sharedService.setSharedData(selMenu, MenuResponse.SHARED_DATA);
|
|
|
|
|
if (menuEntry.REQUEST_TYPE == 'ABSENCE') {
|
|
|
|
|
if (menuEntry.REQUEST_TYPE === 'ABSENCE') {
|
|
|
|
|
this.cs.openAbsencePage();
|
|
|
|
|
} else if (menuEntry.REQUEST_TYPE == 'EIT') {
|
|
|
|
|
} else if (menuEntry.REQUEST_TYPE === 'EIT') {
|
|
|
|
|
this.cs.openEitListPage();
|
|
|
|
|
}
|
|
|
|
|
if (menuEntry.REQUEST_TYPE =='PAYSLIP'){
|
|
|
|
|
if (menuEntry.REQUEST_TYPE === 'PAYSLIP'){
|
|
|
|
|
this.cs.openPayslipPage();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|