mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
fix(images): show image usage only if endpoint API version >= 1.25 (#1067)
This commit is contained in:
parent
aca4f5c286
commit
3919ad3ccf
2 changed files with 9 additions and 4 deletions
|
@ -94,7 +94,8 @@ function ($scope, $state, ImageService, Notifications, Pagination, ModalService)
|
|||
function fetchImages() {
|
||||
$('#loadImagesSpinner').show();
|
||||
var endpointProvider = $scope.applicationState.endpoint.mode.provider;
|
||||
ImageService.images(endpointProvider !== 'DOCKER_SWARM')
|
||||
var apiVersion = $scope.applicationState.endpoint.apiVersion;
|
||||
ImageService.images(apiVersion >= 1.25 && endpointProvider !== 'DOCKER_SWARM')
|
||||
.then(function success(data) {
|
||||
$scope.images = data;
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue