From 4148f2eee6313068d3223871005160b2902abb18 Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Wed, 29 Jan 2020 13:21:12 -0800 Subject: Create profile settings page Adding a profile settings page so readonly and operator roles are able to change their own password. Signed-off-by: Yoshie Muranaka Change-Id: Iee9536255ad47f4df4af8746c1e01da37c407f2b --- app/common/directives/app-header.html | 11 ++++++++++- app/common/directives/app-header.js | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'app/common/directives') diff --git a/app/common/directives/app-header.html b/app/common/directives/app-header.html index bf4fb8f..ec03874 100644 --- a/app/common/directives/app-header.html +++ b/app/common/directives/app-header.html @@ -2,7 +2,16 @@
OpenBMC - Log out +
+ + +
diff --git a/app/common/directives/app-header.js b/app/common/directives/app-header.js index 98d210f..df39772 100644 --- a/app/common/directives/app-header.js +++ b/app/common/directives/app-header.js @@ -14,6 +14,7 @@ window.angular && (function(angular) { function( $rootScope, $scope, dataService, userModel, $location, $route) { $scope.dataService = dataService; + $scope.username = ''; try { // Create a secure websocket with URL as /subscribe @@ -118,6 +119,7 @@ window.angular && (function(angular) { $scope.loadNetworkInfo(); $scope.loadServerHealth(); $scope.loadSystemName(); + $scope.username = dataService.getUser(); } loadData(); -- cgit v1.2.3