added generic header throughout the application

mekawy-issues
umasoodch 6 years ago
parent 88cabac92f
commit f44ddb6931

@ -1,11 +1,7 @@
<ion-header > <app-generic-header
<ion-toolbar class="header-toolbar-new"> showBack="true"
<ion-title color="light"> {{ts.trPK('submitAbsence','submitAbsence')}}</ion-title> [headerText]="'submitAbsence, submitAbsence' | translate">
<ion-buttons slot="start"> </app-generic-header>
<nav-buttons></nav-buttons>
</ion-buttons>
</ion-toolbar>
</ion-header>
<ion-content padding> <ion-content padding>
<ion-item class='dynamicField'> <ion-item class='dynamicField'>

@ -1,11 +1,7 @@
<ion-header> <app-generic-header
<ion-toolbar class="header-toolbar-new"> showBack="true"
<ion-buttons slot="start"> [headerText]="'changePassword,changePassword' | translate">
<nav-buttons [enableMenu]="false" [enableBack]="true" [navigate]="true"></nav-buttons> </app-generic-header>
</ion-buttons>
<ion-title color="light" > {{'changePassword,changePassword' | translate}}</ion-title>
</ion-toolbar>
</ion-header>

@ -1,11 +1,7 @@
<ion-header> <app-generic-header
<ion-toolbar class="header-toolbar"> showBack="true"
<ion-buttons slot="start"> [headerText]="'login,forgot-password' | translate">
<nav-buttons [enableMenu]="false" [enableBack]="true" [navigate]="true"></nav-buttons> </app-generic-header>
</ion-buttons>
<ion-title color="light" > {{'login,forgot-password' | translate}}</ion-title>
</ion-toolbar>
</ion-header>
<ion-content padding> <ion-content padding>
<ion-grid> <ion-grid>

@ -1,8 +1,7 @@
<ion-header> <!-- <ion-header>
<ion-toolbar class="header-toolbar-new"> <ion-toolbar class="header-toolbar-new">
<ion-buttons slot="start"> <ion-buttons slot="start">
<nav-buttons backLink=""></nav-buttons> <nav-buttons backLink=""></nav-buttons>
<!-- <ion-back-button color="light" class="btnBack" defaultHref="/eit/eit-list/" ></ion-back-button> -->
</ion-buttons> </ion-buttons>
<ion-title color="light">{{headerTitle}}</ion-title> <ion-title color="light">{{headerTitle}}</ion-title>
@ -13,7 +12,13 @@
</ion-buttons> </ion-buttons>
</ion-toolbar> </ion-toolbar>
</ion-header> </ion-header> -->
<app-generic-header
showBack="true"
[headerText]="headerTitle">
</app-generic-header>
<ion-content padding> <ion-content padding>
<div #containerDiv id="containerDiv"> <div #containerDiv id="containerDiv">

@ -596,7 +596,7 @@ public getMonthNameAr(value: number): string {
if (result.MessageStatus === 1) { if (result.MessageStatus === 1) {
return true; return true;
} else if (result.MessageStatus === 2) { } else if (result.MessageStatus === 2) {
return this.hasData(result['SameClinicApptList']); return false;
} }
return false; return false;
} }

@ -167,6 +167,7 @@ public static host = 'https://uat.hmgwebservices.com/';
} }
if (!this.cs.validResponse(result)) { if (!this.cs.validResponse(result)) {
if (result.IsAuthenticated === false) { if (result.IsAuthenticated === false) {
this.cs.stopLoading();
this.cs.presentAcceptDialog(result.ErrorEndUserMessage, () => { this.cs.presentAcceptDialog(result.ErrorEndUserMessage, () => {
this.cs.sharedService.clearAll(); this.cs.sharedService.clearAll();
this.cs.openLogin(); this.cs.openLogin();

@ -1,11 +1,8 @@
<ion-header> <app-generic-header
<ion-toolbar class="header-toolbar"> showBack="true"
<ion-title color="light"> {{ts.trPK('worklistMain','title')}}</ion-title> backLink="/notification/homepage"
<ion-buttons slot="start"> [headerText]="'worklistMain,title' | translate">
<nav-buttons backLink="/notification/homepage"></nav-buttons> </app-generic-header>
</ion-buttons>
</ion-toolbar>
</ion-header>
<ion-content class="colorBG"> <ion-content class="colorBG">
<ion-segment mode="md" color="secondary" (ionChange)="segmentChangedClick($event)" <ion-segment mode="md" color="secondary" (ionChange)="segmentChangedClick($event)"

@ -1,12 +1,9 @@
<ion-header *ngIf="!messageSuccess"> <app-generic-header
<ion-toolbar class="header-toolbar-new"> *ngIf="!messageSuccess"
<ion-title color="light"> {{ts.trPK('worklistMain','title')}}</ion-title> showBack="true"
<ion-buttons slot="start"> backLink="/notification/homepage"
<nav-buttons backLink="/notification/homepage"></nav-buttons> [headerText]="'worklistMain,title' | translate">
</ion-buttons> </app-generic-header>
</ion-toolbar>
</ion-header>
<ion-content class="colorBG"> <ion-content class="colorBG">
<div *ngIf="!messageSuccess" > <div *ngIf="!messageSuccess" >

@ -1,14 +1,9 @@
<ion-header *ngIf="!messageSuccess"> <app-generic-header
<ion-toolbar class="header-toolbar-new"> *ngIf="!messageSuccess"
<ion-title color="light"> {{ts.trPK('worklistMain','title')}}</ion-title> showBack="true"
<ion-buttons slot="start"> backLink="/notification/homepage"
<nav-buttons backLink="/notification/homepage"></nav-buttons> [headerText]="'worklistMain,title' | translate">
</ion-buttons> </app-generic-header>
</ion-toolbar>
</ion-header>
<ion-content class="colorBG"> <ion-content class="colorBG">
<div *ngIf="!messageSuccess"> <div *ngIf="!messageSuccess">

@ -1,11 +1,9 @@
<ion-header *ngIf="!messageSuccess"> <app-generic-header
<ion-toolbar class="header-toolbar-new"> *ngIf="!messageSuccess"
<ion-title color="light"> {{ts.trPK('worklistMain','title')}}</ion-title> showBack="true"
<ion-buttons slot="start"> backLink="/notification/homepage"
<nav-buttons backLink="/notification/homepage"></nav-buttons> [headerText]="'worklistMain,title' | translate">
</ion-buttons> </app-generic-header>
</ion-toolbar>
</ion-header>
<ion-content class="colorBG"> <ion-content class="colorBG">
<div *ngIf="!messageSuccess"> <div *ngIf="!messageSuccess">

@ -1,11 +1,10 @@
<ion-header *ngIf="!messageSuccess"> <app-generic-header
<ion-toolbar class="header-toolbar-new"> *ngIf="!messageSuccess"
<ion-title color="light"> {{ts.trPK('worklistMain','title')}}</ion-title> showBack="true"
<ion-buttons slot="start"> backLink="/notification/homepage"
<nav-buttons backLink="/notification/homepage"></nav-buttons> [headerText]="'worklistMain,title' | translate">
</ion-buttons> </app-generic-header>
</ion-toolbar>
</ion-header>
<ion-content class="colorBG"> <ion-content class="colorBG">
<div *ngIf="!messageSuccess"> <div *ngIf="!messageSuccess">
<!-- add segemnt part --> <!-- add segemnt part -->

@ -1,14 +1,7 @@
<app-generic-header
<ion-header > showBack="true"
<ion-toolbar class="header-toolbar-new"> [headerText]="'userProfile,title' | translate">
<ion-title color="light">{{ts.trPK('userProfile','title')}}</ion-title> </app-generic-header>
<ion-buttons slot="start">
<nav-buttons></nav-buttons>
</ion-buttons>
</ion-toolbar>
</ion-header>
<ion-content class="colorBG"> <ion-content class="colorBG">
<div class="header-div"> <div class="header-div">

Loading…
Cancel
Save