forked from Ivasoft/traefik
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user