mirror of
https://github.com/portainer/portainer.git
synced 2025-07-31 03:09:44 +02:00
feat(network-details): add list of containers in network (#302)
- shows all containers currently connected to the network - abillity to disconect a container from the network - fix error when a container is not connected to any networks
This commit is contained in:
parent
03456ddcf8
commit
712b4528c0
3 changed files with 83 additions and 11 deletions
|
@ -6,7 +6,7 @@ angular.module('portainer.services', ['ngResource', 'ngSanitize'])
|
|||
return $resource(Settings.url + '/containers/:id/:action', {
|
||||
name: '@name'
|
||||
}, {
|
||||
query: {method: 'GET', params: {all: 0, action: 'json'}, isArray: true},
|
||||
query: {method: 'GET', params: {all: 0, action: 'json', filters: '@filters' }, isArray: true},
|
||||
get: {method: 'GET', params: {action: 'json'}},
|
||||
stop: {method: 'POST', params: {id: '@id', t: 5, action: 'stop'}},
|
||||
restart: {method: 'POST', params: {id: '@id', t: 5, action: 'restart'}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue