mirror of https://gitee.com/bigwinds/arangodb
Fixed a bug in graph viewer to list the label attribute
This commit is contained in:
parent
9762c20424
commit
11a2f23c2b
|
@ -2,7 +2,7 @@
|
|||
/*global document, $, _ */
|
||||
/*global EventDispatcherControls, NodeShaperControls, EdgeShaperControls */
|
||||
/*global LayouterControls, GharialAdapterControls*/
|
||||
/*global GraphViewer, d3, window, alert*/
|
||||
/*global GraphViewer, d3, window*/
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Graph functionality
|
||||
///
|
||||
|
@ -453,7 +453,7 @@ function GraphViewerUI(container, adapterConfig, optWidth, optHeight, viewerConf
|
|||
} else {
|
||||
graphViewer.loadGraphWithRandomStart(function(node) {
|
||||
if (node && node.errorCode) {
|
||||
alertError("Sorry your graph seems to be empty");
|
||||
window.alert("Sorry your graph seems to be empty");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -292,6 +292,9 @@ var modalDialogHelper = modalDialogHelper || {};
|
|||
};
|
||||
addLineButton.id = id + "_addLine";
|
||||
addLineButton.className = "graphViewer-icon-button gv-icon-small add";
|
||||
if (typeof list === "string" && list.length > 0) {
|
||||
list = [list];
|
||||
}
|
||||
if (list.length > 0) {
|
||||
input.value = list[0];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue