mirror of https://github.com/portainer/portainer
VolumesFrom support container names
parent
f4ef63b8f8
commit
017863bfc0
|
@ -54,7 +54,7 @@ angular.module('containersNetwork', ['ngVis'])
|
|||
};
|
||||
|
||||
this.addVolumeEdgeIfExists = function(from, to) {
|
||||
if (from.VolumesFrom != null && from.VolumesFrom[to.Id] != null) {
|
||||
if (from.VolumesFrom != null && (from.VolumesFrom[to.Id] != null || from.VolumesFrom[to.Name] != null)) {
|
||||
this.edges.add({
|
||||
from: from.Id,
|
||||
to: to.Id,
|
||||
|
|
Loading…
Reference in New Issue