added tech support page
parent
f383fc83e9
commit
1dbee24b5a
@ -0,0 +1,11 @@
|
||||
<app-generic-header
|
||||
showBack="true"
|
||||
[headerText]="'myTeam,help' | translate">
|
||||
</app-generic-header>
|
||||
|
||||
<ion-content>
|
||||
<div class="main-div-contact">
|
||||
<h2 *ngIf="personalInfo" style="font-size: 20px; color: #004d7c;">{{ts.trPK('myTeam','dear')}} {{personalInfo.EMPLOYEE_NAME}}</h2>
|
||||
<p style="font-size: 16px; color: #004d7c;">{{ts.trPK('myTeam','contact-text')}}</p>
|
||||
</div>
|
||||
</ion-content>
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
.main-div-contact {
|
||||
padding-right: 20px;
|
||||
padding-left: 20px;
|
||||
margin-top: 20%;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { ContactUsComponent } from './contact-us.component';
|
||||
|
||||
describe('ContactUsComponent', () => {
|
||||
let component: ContactUsComponent;
|
||||
let fixture: ComponentFixture<ContactUsComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ ContactUsComponent ],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(ContactUsComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,36 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { AuthenticationService } from 'src/app/hmg-common/services/authentication/authentication.service';
|
||||
import { AuthenticatedUser } from 'src/app/hmg-common/services/authentication/models/authenticated-user';
|
||||
import { TranslatorService } from 'src/app/hmg-common/services/translator/translator.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-contact-us',
|
||||
templateUrl: './contact-us.component.html',
|
||||
styleUrls: ['./contact-us.component.scss'],
|
||||
})
|
||||
export class ContactUsComponent implements OnInit {
|
||||
|
||||
public personalInfo: any;
|
||||
|
||||
constructor(
|
||||
public authService: AuthenticationService,
|
||||
public ts: TranslatorService
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.getProfile();
|
||||
}
|
||||
|
||||
public getProfile() {
|
||||
|
||||
this.authService
|
||||
.loadAuthenticatedUser()
|
||||
.subscribe((user: AuthenticatedUser) => {
|
||||
if (user) {
|
||||
console.log(user);
|
||||
this.personalInfo = user;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue