fix(images): fix the system/df call to display unused images (#1037)

pull/1045/head
Anthony Lapenna 7 years ago committed by GitHub
parent 806a0b92a0
commit a39645a297

@ -1,7 +1,7 @@
angular.module('portainer.rest')
.factory('System', ['$resource', 'DOCKER_ENDPOINT', 'EndpointProvider', function SystemFactory($resource, DOCKER_ENDPOINT, EndpointProvider) {
'use strict';
return $resource(DOCKER_ENDPOINT + '/:endpointId/:action', {
return $resource(DOCKER_ENDPOINT + '/:endpointId/:action/:subAction', {
name: '@name',
endpointId: EndpointProvider.endpointID
},
@ -13,6 +13,6 @@ angular.module('portainer.rest')
isArray: true, transformResponse: jsonObjectsToArrayHandler
},
auth: { method: 'POST', params: { action: 'auth' } },
dataUsage: { method: 'GET', params: { action: 'system/df' } }
dataUsage: { method: 'GET', params: { action: 'system', subAction: 'df' } }
});
}]);

Loading…
Cancel
Save