Do not try to show the database dashboard, when clicked on one of the

children node. This implementation will allow to add new nodes at server
level without modifying the dashboard code. I found the issue during the
pgAgent Jobs node implementation.
pull/3/head
Ashesh Vashi 2016-07-11 16:31:50 +05:30
parent 2b809523eb
commit 6fa4065eee
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,9 @@ function(r, $, pgAdmin, _, Backbone) {
default:
url = '{{ url_for('dashboard.index') }}'
+ treeHierarchy.server._id
+ '/' + treeHierarchy.database._id;
if ('database' in treeHierarchy) {
url += '/' + treeHierarchy.database._id;
}
break;
}
}