1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

feat(volumes): view dangling volumes (#993)

This commit is contained in:
Konstantin Azizov 2017-07-09 19:49:36 +03:00 committed by Anthony Lapenna
parent 6df5eb3787
commit fe5a993fc9
3 changed files with 36 additions and 9 deletions

View file

@ -3,9 +3,9 @@ angular.module('portainer.services')
'use strict';
var service = {};
service.volumes = function() {
service.volumes = function(params) {
var deferred = $q.defer();
Volume.query().$promise
Volume.query(params).$promise
.then(function success(data) {
var volumes = data.Volumes || [];
volumes = volumes.map(function (item) {