VolumesFrom support container names

pull/2/head
Karl Gutwin 9 years ago
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…
Cancel
Save