Handle standard menu items defined by Nodes in the browser. The File menu now includes a "Create" submenu, and Delete/Rename options. Nodes can offer Delete/Rename functionality, and the options on the menu are automatically enabled/disabled based on the selected node. Each node can also offer Create functionality, and specify a list of node types (including itself) from which the option should be made available. The menu is dynamically generated based on the selected node.
The Context menu on the treeview works in a similar way, except that nodes can offer any context menu items (we don't allow this on the top menu, as that should stay consistent to avoid user confusion). Branch ------ master Details ------- http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=751f8383fa448e5e7a43847ac91994a757ad200f Modified Files -------------- docs/en_US/code-overview.rst | 10 + web/pgadmin/about/hooks.py | 3 +- web/pgadmin/browser/server_groups/hooks.py | 22 ++- web/pgadmin/browser/server_groups/servers/hooks.py | 22 ++- .../servers/templates/servers/servers.js | 14 +- .../templates/server_groups/server_groups.js | 8 +- web/pgadmin/browser/server_groups/views.py | 1 + web/pgadmin/browser/templates/browser/index.html | 28 ++- .../browser/templates/browser/js/browser.js | 208 +++++++++++++++----- web/pgadmin/browser/views.py | 14 ++ web/pgadmin/help/views.py | 4 - web/pgadmin/static/css/overrides.css | 58 ++++++ web/pgadmin/static/css/wcDocker/theme.css | 5 + 13 files changed, 314 insertions(+), 83 deletions(-) -- Sent via pgadmin-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers
