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:
parent
6ba17847ab
commit
a8cbe7ef5e
8 changed files with 53 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue