mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user