mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-16 18:11:59 -05:00
Remove Query tool from object menu. It is already shown under tools menu, so no need to show under object menu.
This commit is contained in:
1 parent
40b075389f
commit
3f25e9331f
2 files changed
+4
-4
No files matched your search
@@ -37,12 +37,12 @@ function($, _, S, pgAdmin, Backbone, Alertify, Backform) {
|
||||
icon: 'fa fa-refresh'
|
||||
}]);
|
||||
|
||||
// show query tool in context & object menu of supported nodes.
|
||||
// show query tool only in context menu of supported nodes.
|
||||
if (pgAdmin.DataGrid && pgAdmin.unsupported_nodes) {
|
||||
if (_.indexOf(pgAdmin.unsupported_nodes, this.type) == -1) {
|
||||
pgAdmin.Browser.add_menus([{
|
||||
name: 'show_query_tool', node: this.type, module: this,
|
||||
applies: ['object', 'context'], callback: 'show_query_tool',
|
||||
applies: ['context'], callback: 'show_query_tool',
|
||||
priority: 998, label: '{{ _("Query Tool...") }}',
|
||||
icon: 'fa fa-bolt'
|
||||
}]);
|
||||
|
||||
@@ -107,12 +107,12 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
|
||||
}
|
||||
}
|
||||
|
||||
// show query tool in context & object menu of supported nodes.
|
||||
// show query tool only in context menu of supported nodes.
|
||||
if (pgAdmin.DataGrid && pgAdmin.unsupported_nodes) {
|
||||
if (_.indexOf(pgAdmin.unsupported_nodes, self.type) == -1) {
|
||||
pgAdmin.Browser.add_menus([{
|
||||
name: 'show_query_tool', node: self.type, module: self,
|
||||
applies: ['object', 'context'], callback: 'show_query_tool',
|
||||
applies: ['context'], callback: 'show_query_tool',
|
||||
priority: 998, label: '{{ _("Query Tool...") }}',
|
||||
icon: 'fa fa-bolt'
|
||||
}]);
|
||||
|
||||
Reference in new issue
Block a user