Both filters at same time

This commit is contained in:
Jesús Ángel González 2017-12-21 11:32:05 +01:00
parent 552ea30785
commit 585af30a1b

View File

@ -28,8 +28,10 @@ app.controller('agentsPreviewController', function ($scope,$rootScope, Notifier,
} else { } else {
const platform = filter.split(' - ')[0]; const platform = filter.split(' - ')[0];
const version = filter.split(' - ')[1]; const version = filter.split(' - ')[1];
$scope.agents.addFilter('os.platform', platform); $scope.agents.addMultipleFilters([
$scope.agents.addFilter('os.version', version); { name: 'os.platform', value: platform },
{ name: 'os.version', value: version }
]);
} }
} }