This is an automated email from the ASF dual-hosted git repository. krisden pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/master by this push: new 4e04a52 KNOX-1707 - Gateway Admin UI should have the right version 4e04a52 is described below commit 4e04a520801d0a586af8446e7204397349b15a66 Author: Kevin Risden <kris...@apache.org> AuthorDate: Fri Dec 21 10:58:06 2018 -0500 KNOX-1707 - Gateway Admin UI should have the right version Signed-off-by: Kevin Risden <kris...@apache.org> --- .../admin-ui/app/gateway-version.component.ts | 16 ++++++---------- gateway-admin-ui/admin-ui/index.html | 3 +-- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/gateway-admin-ui/admin-ui/app/gateway-version.component.ts b/gateway-admin-ui/admin-ui/app/gateway-version.component.ts index d31c87f..1477225 100644 --- a/gateway-admin-ui/admin-ui/app/gateway-version.component.ts +++ b/gateway-admin-ui/admin-ui/app/gateway-version.component.ts @@ -16,34 +16,30 @@ */ import {Component, OnInit} from '@angular/core'; import {GatewayVersion} from './gateway-version'; -import {GatewayVersionService} from "./gateway-version.service"; - +import {GatewayVersionService} from './gateway-version.service'; @Component({ selector: 'gateway-version', template: ` <div *ngIf="gatewayVersion"> - <span class="small"><cite>Knox Gateway Version</cite> {{this.gatewayVersion.version}}</span> + <span class="small"><cite>Version</cite> {{this.gatewayVersion.version}}</span> <span class="small"><cite>Hash</cite> {{this.gatewayVersion.hash}}</span> -</div>`, + </div>`, providers: [GatewayVersionService] }) export class GatewayVersionComponent implements OnInit { + gatewayVersion: GatewayVersion; - gatewayVersion : GatewayVersion; - - constructor(private gatewayVersionService : GatewayVersionService) { + constructor(private gatewayVersionService: GatewayVersionService) { } getVersion(): void { - this.gatewayVersionService.getVersion().then( gatewayVersion => this.gatewayVersion = gatewayVersion); + this.gatewayVersionService.getVersion().then(gatewayVersion => this.gatewayVersion = gatewayVersion); } ngOnInit(): void { this.getVersion(); } - - } diff --git a/gateway-admin-ui/admin-ui/index.html b/gateway-admin-ui/admin-ui/index.html index e01447f..d5ecea3 100644 --- a/gateway-admin-ui/admin-ui/index.html +++ b/gateway-admin-ui/admin-ui/index.html @@ -58,8 +58,7 @@ <footer class="footer"> <div class="container-fluid"> - <div>Knox Manager Version 1.0.0</div> - <gateway-version></gateway-version> + <div>Knox Manager <gateway-version></gateway-version></div> </div> </footer> </body>