8000 Bug fix 3.3/ui events routing (#7070) · strogo/arangodb@4f1651a · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 4f1651a

Browse files
authored andcommitted
Bug fix 3.3/ui events routing (arangodb#7070)
* fixes same issue in another view, too * changelog
1 parent 292868c commit 4f1651a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
v3.3.20 (XXXX-XX-XX)
22
--------------------
33

4+
* optimizes the web ui's routing which could possibly led to unwanted events.
45

56
* fixes some graph data parsing issues in the ui, e.g. cleaning up duplicate
67
edges inside the graph viewer.

js/apps/system/_admin/aardvark/APP/frontend/js/views/graphManagementView.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@
7272

7373
redirectToGraphViewer: function (e) {
7474
var name = $(e.currentTarget).attr('id');
75-
name = name.substr(0, name.length - 5);
76-
window.location.hash = window.location.hash.substr(0, window.location.hash.length - 1) + '/' + encodeURIComponent(name);
75+
if (name) {
76+
name = name.substr(0, name.length - 5);
77+
window.App.navigate('graph/' + encodeURIComponent(name), {trigger: true});
78+
}
7779
},
7880

7981
loadGraphViewer: function (graphName, refetch) {

0 commit comments

Comments
 (0)
0