mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Added tooltip & keyboard shortcut for the query tool button.
2) Fixed TypeError issue. refs #4059
This commit is contained in:
committed by
Akshay Joshi
parent
1bc1ef7f17
commit
62e6848dc8
@@ -161,6 +161,14 @@ let queryToolActions = {
|
||||
sqlEditorController.close_on_save = false;
|
||||
sqlEditorController.save_data();
|
||||
},
|
||||
|
||||
openQueryTool: function (sqlEditorController) {
|
||||
sqlEditorController.gridView.handler.trigger(
|
||||
'pgadmin-sqleditor:button:show_query_tool',
|
||||
sqlEditorController.gridView,
|
||||
sqlEditorController.gridView.handler
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = queryToolActions;
|
||||
|
||||
@@ -136,6 +136,12 @@ function updateUIPreferences(sqlEditor) {
|
||||
.attr('aria-label',
|
||||
shortcut_title(gettext('Rollback'),preferences.rollback_transaction));
|
||||
|
||||
$el.find('#btn-show-query-tool')
|
||||
.attr('title',
|
||||
shortcut_title(gettext('Query tool'),preferences.show_query_tool))
|
||||
.attr('aria-label',
|
||||
shortcut_title(gettext('Query tool'),preferences.show_query_tool));
|
||||
|
||||
/* Set explain options on query editor */
|
||||
if (preferences.explain_verbose){
|
||||
$el.find('.explain-verbose').removeClass('visibility-hidden');
|
||||
|
||||
Reference in New Issue
Block a user