mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Added support to show all background processes in separate panel. Fixes #3709
2) Port process watcher to React. Fixes #7404
This commit is contained in:
committed by
Akshay Joshi
parent
271b6d91fc
commit
c2b23465cc
@@ -629,7 +629,7 @@ define('pgadmin.node.server', [
|
||||
|
||||
var connect_to_server = function(obj, data, tree, item, reconnect) {
|
||||
// Open properties dialog in edit mode
|
||||
var server_url = obj.generate_url(item, 'obj', data, true);
|
||||
let server_url = obj.generate_url(item, 'obj', data, true);
|
||||
// Fetch the updated data
|
||||
$.get(server_url)
|
||||
.done(function(res) {
|
||||
@@ -651,20 +651,7 @@ define('pgadmin.node.server', [
|
||||
}
|
||||
}
|
||||
else if (res.cloud_status == -1) {
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
timeout: 30000,
|
||||
url: url_for('cloud.update_cloud_process', {'sid': res.id}),
|
||||
cache: false,
|
||||
async: true,
|
||||
contentType: 'application/json',
|
||||
})
|
||||
.done(function() {
|
||||
pgAdmin.Browser.BackgroundProcessObsorver.update_process_list();
|
||||
})
|
||||
.fail(function() {
|
||||
console.warn(arguments);
|
||||
});
|
||||
pgAdmin.Browser.BgProcessManager.recheckCloudServer(data._id);
|
||||
}
|
||||
return;
|
||||
}).always(function(){
|
||||
|
||||
Reference in New Issue
Block a user