mirror of https://github.com/portainer/portainer
fix(images): fix the system/df call to display unused images (#1037)
parent
806a0b92a0
commit
a39645a297
|
@ -1,7 +1,7 @@
|
||||||
angular.module('portainer.rest')
|
angular.module('portainer.rest')
|
||||||
.factory('System', ['$resource', 'DOCKER_ENDPOINT', 'EndpointProvider', function SystemFactory($resource, DOCKER_ENDPOINT, EndpointProvider) {
|
.factory('System', ['$resource', 'DOCKER_ENDPOINT', 'EndpointProvider', function SystemFactory($resource, DOCKER_ENDPOINT, EndpointProvider) {
|
||||||
'use strict';
|
'use strict';
|
||||||
return $resource(DOCKER_ENDPOINT + '/:endpointId/:action', {
|
return $resource(DOCKER_ENDPOINT + '/:endpointId/:action/:subAction', {
|
||||||
name: '@name',
|
name: '@name',
|
||||||
endpointId: EndpointProvider.endpointID
|
endpointId: EndpointProvider.endpointID
|
||||||
},
|
},
|
||||||
|
@ -13,6 +13,6 @@ angular.module('portainer.rest')
|
||||||
isArray: true, transformResponse: jsonObjectsToArrayHandler
|
isArray: true, transformResponse: jsonObjectsToArrayHandler
|
||||||
},
|
},
|
||||||
auth: { method: 'POST', params: { action: 'auth' } },
|
auth: { method: 'POST', params: { action: 'auth' } },
|
||||||
dataUsage: { method: 'GET', params: { action: 'system/df' } }
|
dataUsage: { method: 'GET', params: { action: 'system', subAction: 'df' } }
|
||||||
});
|
});
|
||||||
}]);
|
}]);
|
||||||
|
|
Loading…
Reference in New Issue