Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Commit

Permalink
commits as per pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fazanki committed Dec 11, 2018
1 parent b435e13 commit b105331
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
7 changes: 2 additions & 5 deletions src/app/domain/components/header/header.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<header>
<!--TODO move the json file to TS file-->
<app-hmcts-global-header [serviceName]="{
name: 'Judicial case manager',
url: '/'
Expand All @@ -10,9 +11,5 @@
}]
}" ></app-hmcts-global-header>

<app-hmcts-primary-navigation [label]="" [items]="[{
text: 'Your cases',
href: '/',
active: true
}]"></app-hmcts-primary-navigation>
<app-hmcts-primary-navigation [label]="" [items]="navItems"></app-hmcts-primary-navigation>
</header>
15 changes: 13 additions & 2 deletions src/app/domain/components/header/header.component.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
import {Component} from '@angular/core';
import {Component, OnInit} from '@angular/core';
import {AuthService} from '../../../auth/auth.service';
@Component({
selector: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.scss']
})
export class HeaderComponent {
export class HeaderComponent implements OnInit {

logoutLink: string;
navItems: Array<{}>;

constructor(public authService: AuthService) {
this.logoutLink = `/logout?redirect=${encodeURIComponent(this.authService.generateLoginUrl())}`;
}

ngOnInit(): void {
this.navItems = [{
text: 'Your cases',
href: '/',
active: true
}];
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ export class SearchResultComponent implements OnInit {
ngOnInit() {
this.data$ = this.caseService.search();
}

onSubmit() {}
}
2 changes: 1 addition & 1 deletion src/app/routing/pages/view-case/view-case.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class ViewCaseComponent implements OnInit, OnDestroy {
}
}
}
private setNavigationSections() {
private setNavigationSections(): void {
this.sections = this.caseDataService.getNavigation(this.case, this.sectionTabName);
}

Expand Down

0 comments on commit b105331

Please sign in to comment.