mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-08 02:38:51 +00:00
1f4ff21295
Conflicts: public/controllers/groups.js
18 lines
539 B
JavaScript
18 lines
539 B
JavaScript
let app = require('ui/modules').get('app/wazuh', []);
|
|
|
|
// Logs controller
|
|
app.controller('managerLogController', function ($scope, Logs, apiReq) {
|
|
$scope.searchTerm = '';
|
|
$scope.loading = true;
|
|
$scope.logs = Logs;
|
|
|
|
$scope.logs.nextPage('')
|
|
.then(() => apiReq.request('GET', '/manager/logs/summary', {}))
|
|
.then(data => {
|
|
$scope.summary = data.data.data;
|
|
$scope.loading = false;
|
|
});
|
|
|
|
// Resetting the factory configuration
|
|
$scope.$on("$destroy", () => $scope.logs.reset());
|
|
}); |