wazuh-kibana-app/public/controllers/overview.js
2017-01-16 10:28:26 -08:00

32 lines
984 B
JavaScript

var app = require('ui/modules').get('app/wazuh', []);
app.controller('overviewGeneralController', function ($scope, DataFactory, genericReq, $mdToast, errlog) {
$scope.load = true;
$scope.defaultManager = $scope.$parent.state.getDefaultManager().name;
});
app.controller('overviewFimController', function ($scope, DataFactory, genericReq, $mdToast, errlog) {
$scope.load = true;
$scope.defaultManager = $scope.$parent.state.getDefaultManager().name;
});
app.controller('overviewPMController', function ($scope, DataFactory, genericReq, $mdToast, errlog) {
$scope.load = true;
$scope.$parent.state.setOverviewState('pm');
$scope.defaultManager = $scope.$parent.state.getDefaultManager().name;
});
app.controller('overviewOSCAPController', function ($scope, DataFactory, genericReq, $mdToast, errlog) {
$scope.load = true;
$scope.$parent.state.setOverviewState('oscap');
$scope.defaultManager = $scope.$parent.state.getDefaultManager().name;
});