mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 23:39:41 +02:00
Add actions to show upstream and downstream dependencies of a container for easy visualization.
Additionally updated angular-vis to use version 0.0.4 which already includes the changes of https://github.com/visjs/angular-visjs/pull/22.
This commit is contained in:
parent
9e713b7b81
commit
edd6a41d6e
4 changed files with 102 additions and 30 deletions
9
assets/js/angular-vis.js
vendored
9
assets/js/angular-vis.js
vendored
|
@ -19,7 +19,8 @@ angular.module('ngVis', [])
|
|||
scope: {
|
||||
data: '=',
|
||||
options: '=',
|
||||
events: '='
|
||||
events: '=',
|
||||
component: '='
|
||||
},
|
||||
link: function (scope, element, attr) {
|
||||
var timelineEvents = [
|
||||
|
@ -46,6 +47,7 @@ angular.module('ngVis', [])
|
|||
|
||||
// Create the timeline object
|
||||
timeline = new vis.Timeline(element[0]);
|
||||
scope.component = timeline;
|
||||
|
||||
// Attach an event handler if defined
|
||||
angular.forEach(scope.events, function (callback, event) {
|
||||
|
@ -169,7 +171,8 @@ angular.module('ngVis', [])
|
|||
scope: {
|
||||
data: '=',
|
||||
options: '=',
|
||||
events: '='
|
||||
events: '=',
|
||||
component: '='
|
||||
},
|
||||
link: function (scope, element, attr) {
|
||||
var graphEvents = [
|
||||
|
@ -181,6 +184,7 @@ angular.module('ngVis', [])
|
|||
|
||||
// Create the chart
|
||||
var graph = new vis.Graph2d(element[0]);
|
||||
scope.component = graph;
|
||||
|
||||
scope.$watch('data', function () {
|
||||
// Sanity check
|
||||
|
@ -196,6 +200,7 @@ angular.module('ngVis', [])
|
|||
|
||||
// Create the graph2d object
|
||||
graph = new vis.Graph2d(element[0]);
|
||||
scope.component = graph;
|
||||
|
||||
// Attach an event handler if defined
|
||||
angular.forEach(scope.events, function (callback, event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue