diff --git a/app/components/containers/containersController.js b/app/components/containers/containersController.js index 1dd1a22be..b08d41705 100644 --- a/app/components/containers/containersController.js +++ b/app/components/containers/containersController.js @@ -185,7 +185,7 @@ angular.module('containers', []) } ); }; - + function toggleItemSelection(item) { if (item.Checked) { $scope.state.selectedItemCount++; @@ -193,7 +193,7 @@ angular.module('containers', []) $scope.state.selectedItemCount--; } } - + function updateSelectionFlags() { $scope.state.noStoppedItemsSelected = true; $scope.state.noRunningItemsSelected = true; @@ -202,7 +202,7 @@ angular.module('containers', []) if(!container.Checked) { return; } - + if(container.Status === 'paused') { $scope.state.noPausedItemsSelected = false; } else if(container.Status === 'stopped') { @@ -233,7 +233,7 @@ angular.module('containers', []) $q.when(provider !== 'DOCKER_SWARM' || SystemService.info()) .then(function success(data) { if (provider === 'DOCKER_SWARM') { - $scope.swarm_hosts = retrieveSwarmHostsInfo(d); + $scope.swarm_hosts = retrieveSwarmHostsInfo(data); } update({all: $scope.state.displayAll ? 1 : 0}); }) diff --git a/app/components/createVolume/createVolumeController.js b/app/components/createVolume/createVolumeController.js index 7107fb077..579b948d1 100644 --- a/app/components/createVolume/createVolumeController.js +++ b/app/components/createVolume/createVolumeController.js @@ -70,16 +70,18 @@ function ($scope, $state, VolumeService, SystemService, ResourceControlService, function initView() { $('#loadingViewSpinner').show(); - SystemService.getVolumePlugins() - .then(function success(data) { - $scope.availableVolumeDrivers = data; - }) - .catch(function error(err) { - Notifications.error('Failure', err, 'Unable to retrieve volume drivers'); - }) - .finally(function final() { - $('#loadingViewSpinner').hide(); - }); + if ($scope.applicationState.endpoint.mode.provider !== 'DOCKER_SWARM') { + SystemService.getVolumePlugins() + .then(function success(data) { + $scope.availableVolumeDrivers = data; + }) + .catch(function error(err) { + Notifications.error('Failure', err, 'Unable to retrieve volume drivers'); + }) + .finally(function final() { + $('#loadingViewSpinner').hide(); + }); + } } initView(); diff --git a/app/components/images/images.html b/app/components/images/images.html index fc2fbf06d..19dd4669b 100644 --- a/app/components/images/images.html +++ b/app/components/images/images.html @@ -70,7 +70,7 @@