Commit 39264b1b by Johannes Edmeier

Set initial value for after parameter of audit endpoints to 30min ago

parent 98769abe
......@@ -17,8 +17,13 @@
module.exports = function ($scope, $http, application) {
'ngInject';
var halfAnHourBefore = new Date();
halfAnHourBefore.setMinutes(halfAnHourBefore.getMinutes() - 30);
halfAnHourBefore.setSeconds(0);
halfAnHourBefore.setMilliseconds(0);
$scope.auditevents = [];
$scope.filter = { principal: null, type: null, after: null };
$scope.filter = {principal: null, type: null, after: halfAnHourBefore};
$scope.setFilter = function (key, value) {
$scope.filter[key] = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment