wazuh-kibana-app/public/controllers/blank-screen-controller.js
2018-03-11 12:16:50 +01:00

13 lines
444 B
JavaScript

const app = require('ui/modules').get('app/wazuh', []);
// Logs controller
app.controller('blankScreenController', function ($scope, $rootScope, errorHandler,$location) {
if($rootScope.blankScreenError) {
$scope.errorToShow = $rootScope.blankScreenError;
delete $rootScope.blankScreenError;
if(!$scope.$$phase) $scope.$digest();
}
$scope.goOverview = () => {
$location.path('/overview');
}
});