From 7a503bcf9559c95d58500e4c90ea353fb06b8227 Mon Sep 17 00:00:00 2001 From: Mumshad Mannambeth Date: Sat, 8 Jul 2017 18:19:47 -0400 Subject: [PATCH] Add playable version to UI and in config file. --- client/app/main/main.component.js | 4 +++- client/app/main/main.html | 8 ++++---- client/components/navbar/navbar.component.js | 3 ++- client/components/navbar/navbar.html | 2 +- server/config/environment/shared.js | 1 + 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/client/app/main/main.component.js b/client/app/main/main.component.js index 0b480d4..f6dda0a 100644 --- a/client/app/main/main.component.js +++ b/client/app/main/main.component.js @@ -5,8 +5,10 @@ import routing from './main.routes'; export class MainController { /*@ngInject*/ - constructor($http) { + constructor($http, $scope, appConfig) { + 'ngInject'; this.$http = $http; + $scope.appVersion = appConfig.version; } } diff --git a/client/app/main/main.html b/client/app/main/main.html index 25505f5..301a26d 100644 --- a/client/app/main/main.html +++ b/client/app/main/main.html @@ -1,8 +1,8 @@ @@ -101,11 +101,11 @@ mmumshad@gmail.com @mmumshad
- I am a Cloud Computing Solutions Architect and an Ansible Enthusiast. This is a fun project that I think will help Ansible users. I Look forward to working with you in maintaining and improving this open-source platform. + I am an Ansible Enthusiast. This is a fun project that I think will help Ansible users. I Look forward to working with you in maintaining and improving this open-source platform.
-
This is a proof-of-concept implementation. This is only to be used for testing purpose and NOT to be used in production.
+
This is a proof-of-concept implementation and is in Alpha version. This is only to be used for testing purpose and NOT to be used in production.
diff --git a/client/components/navbar/navbar.component.js b/client/components/navbar/navbar.component.js index 8387bdb..5033a5e 100644 --- a/client/components/navbar/navbar.component.js +++ b/client/components/navbar/navbar.component.js @@ -23,12 +23,13 @@ export class NavbarComponent { isCollapsed = true; - constructor(Auth) { + constructor(Auth, appConfig) { 'ngInject'; this.isLoggedIn = Auth.isLoggedInSync; this.isAdmin = Auth.isAdminSync; this.getCurrentUser = Auth.getCurrentUserSync; + this.appVersion = appConfig.version; } } diff --git a/client/components/navbar/navbar.html b/client/components/navbar/navbar.html index 621ad79..0b2cca7 100644 --- a/client/components/navbar/navbar.html +++ b/client/components/navbar/navbar.html @@ -1,7 +1,7 @@