1
0
Fork 0

feat(webui): Add dashboard filter.

- Convert Object properties to and array for backends and frondends for each providers.
- Remove unused parameters.
- Add filter.
This commit is contained in:
Fernandez Ludovic 2017-04-14 10:44:35 +02:00
parent 6ba17847ab
commit a8cbe7ef5e
8 changed files with 53 additions and 19 deletions

View file

@ -2,17 +2,18 @@
/** @ngInject */
function ProvidersController($scope, $interval, $log, Providers) {
var vm = this;
const vm = this;
vm.providers = Providers.get();
var intervalId = $interval(function () {
const intervalId = $interval(function () {
Providers.get(function (providers) {
vm.providers = providers;
}, function (error) {
vm.providers = {};
$log.error(error);
});
}, 2000);
$scope.$on('$destroy', function () {
@ -20,4 +21,4 @@ function ProvidersController($scope, $interval, $log, Providers) {
});
}
module.exports = ProvidersController;
module.exports = ProvidersController;