mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where alert message should get displayed on active browser window.
refs #4059
This commit is contained in:
committed by
Akshay Joshi
parent
d0310b669e
commit
7fac72cac5
@@ -8,6 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
import {getTreeNodeHierarchyFromIdentifier} from 'sources/tree/pgadmin_tree_node';
|
import {getTreeNodeHierarchyFromIdentifier} from 'sources/tree/pgadmin_tree_node';
|
||||||
|
import {showQueryTool} from 'tools/datagrid/static/js/show_query_tool';
|
||||||
|
|
||||||
define('tools.querytool', [
|
define('tools.querytool', [
|
||||||
'sources/gettext', 'sources/url_for', 'jquery', 'jquery.ui',
|
'sources/gettext', 'sources/url_for', 'jquery', 'jquery.ui',
|
||||||
@@ -4317,14 +4318,16 @@ define('tools.querytool', [
|
|||||||
_show_query_tool: function() {
|
_show_query_tool: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
setTimeout(() => {
|
var tree_node = pgWindow.default.pgAdmin.selected_tree_map.get(self.url_params.did || self.url_params.sid);
|
||||||
var tree_node = pgWindow.default.pgAdmin.selected_tree_map.get(self.url_params.did || self.url_params.sid);
|
if(self.preferences.new_browser_tab) {
|
||||||
if(self.preferences.new_browser_tab) {
|
is_main_window_alive();
|
||||||
is_main_window_alive();
|
}
|
||||||
}
|
this._open_query_tool(tree_node);
|
||||||
|
},
|
||||||
|
|
||||||
pgWindow.default.pgAdmin.DataGrid.show_query_tool('', tree_node.i);
|
_open_query_tool: function(tree_node) {
|
||||||
}, 200);
|
const transId = pgadminUtils.getRandomInt(1, 9999999);
|
||||||
|
showQueryTool(pgWindow.default.pgAdmin.DataGrid, pgWindow.default.pgAdmin.Browser, alertify, '', tree_node.i, transId);
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user