Add unit-id and bmc-reboot to navigation.
Change-Id: Idce6d77955cbcd348a3e0e8d0c6785ad983cfdc5
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
diff --git a/src/js/app.js b/src/js/app.js
index 6469860..857c9af 100644
--- a/src/js/app.js
+++ b/src/js/app.js
@@ -24,6 +24,16 @@
'templateUrl': 'system-overview.html',
'controller': 'systemOverviewController'
})
+ .when('/unit-id', {
+ 'templateUrl': 'unit-id.html',
+ 'controller': 'unitIDController',
+ authenticated: true
+ })
+ .when('/bmc-reboot', {
+ 'templateUrl': 'bmc-reboot.html',
+ 'controller': 'bmcRebootController',
+ authenticated: true
+ })
.otherwise({
'redirectTo': '/login'
});
diff --git a/src/js/controllers.js b/src/js/controllers.js
index a197ab2..854af78 100644
--- a/src/js/controllers.js
+++ b/src/js/controllers.js
@@ -25,6 +25,12 @@
.controller('systemOverviewController', ['$scope', 'dataService', function($scope, dataService){
$scope.dataService = dataService;
}])
+ .controller('unitIDController', ['$scope', 'dataService', function($scope, dataService){
+ $scope.dataService = dataService;
+ }])
+ .controller('bmcRebootController', ['$scope', 'dataService', function($scope, dataService){
+ $scope.dataService = dataService;
+ }])
.controller('powerOperationsController', ['$scope', 'APIUtils', 'dataService', function($scope, APIUtils, dataService){
$scope.dataService = dataService;
$scope.confirm = false;