mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 14:59:41 +02:00
fix(swarm): fix multiple Swarm related issues (#1022)
* fix(containers): fix an issue where the containers would not be displayed * fix(images): image usage filtering is not compliant with docker/swarm * fix(volume-creation): do not load volume driver with docker/swarm
This commit is contained in:
parent
703e423e04
commit
536ca15e90
6 changed files with 25 additions and 22 deletions
|
@ -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});
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue