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:
parent
f4ef63b8f8
commit
017863bfc0
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue