Add status page in UI
This commit is contained in:
parent
85475d4e50
commit
09e8552cd7
|
@ -308,7 +308,14 @@ angular.module('am.services').factory('Status',
|
|||
|
||||
angular.module('am.controllers').controller('StatusCtrl',
|
||||
function($scope, Status) {
|
||||
|
||||
Status.get({},
|
||||
function(data) {
|
||||
$scope.config = data.data.config;
|
||||
$scope.versionInfo = data.data.versionInfo;
|
||||
},
|
||||
function(data) {
|
||||
console.log(data.data);
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -331,6 +338,10 @@ angular.module('am').config(
|
|||
templateUrl: '/app/partials/silences.html',
|
||||
controller: 'SilencesCtrl'
|
||||
}).
|
||||
when('/status', {
|
||||
templateUrl: '/app/partials/status.html',
|
||||
controller: 'StatusCtrl'
|
||||
}).
|
||||
otherwise({
|
||||
redirectTo: '/silences'
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue