1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00

VolumesFrom support container names

This commit is contained in:
Karl Gutwin 2015-08-12 14:47:47 -04:00
parent f4ef63b8f8
commit 017863bfc0

View file

@ -54,7 +54,7 @@ angular.module('containersNetwork', ['ngVis'])
}; };
this.addVolumeEdgeIfExists = function(from, to) { 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({ this.edges.add({
from: from.Id, from: from.Id,
to: to.Id, to: to.Id,