Skip to content

Commit

Permalink
feat(cb2-14690): version number (#1636)
Browse files Browse the repository at this point in the history
* feat(cb2-14690): version number

* feat(cb2-14690): version number comments addressed

* feat(cb2-14690): version number comments addresseds

* feat(cb2-14690): version number comments address

---------

Co-authored-by: Tom Evans <thomas.evans@dvsa.gov.uk>
  • Loading branch information
tomevs88 and Tom Evans authored Nov 8, 2024
1 parent 9111461 commit ba382a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/core/components/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<div class="govuk-grid-row govuk-!-margin-bottom-2 govuk-width-container">
<div class="govuk-grid-column-one-half">
<a href="/" id="header-home-link" class="govuk-header__link govuk-header__link--homepage">Vehicle testing management</a>
<span id="appversion">v{{ version }}</span>
</div>
<div class="govuk-grid-column-one-half govuk-!-text-align-right govuk-!-font-size-19">
<span id="username">{{ username }}</span>
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/components/header/header.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, EventEmitter, Input, Output } from '@angular/core';
import packageInfo from '../../../../../package.json';

@Component({
selector: 'app-header',
Expand All @@ -8,6 +9,7 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
export class HeaderComponent {
@Output() logOutEvent = new EventEmitter<void>();
@Input() username: string | null = '';
protected readonly version = packageInfo.version;

logout() {
this.logOutEvent.emit();
Expand Down

0 comments on commit ba382a8

Please sign in to comment.