From a39645a2972a9546e86b467681fa1a571caa070a Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Mon, 17 Jul 2017 15:58:53 +0200 Subject: [PATCH] fix(images): fix the system/df call to display unused images (#1037) --- app/rest/docker/system.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/rest/docker/system.js b/app/rest/docker/system.js index 242f1f120..c0285070a 100644 --- a/app/rest/docker/system.js +++ b/app/rest/docker/system.js @@ -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' } } }); }]);