mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Added more information to the 'Database connected/disconnected' message. Fixes #4943.
This commit is contained in:
committed by
Akshay Joshi
parent
9bda583d5b
commit
53f418b9a2
@@ -200,6 +200,9 @@ define('pgadmin.node.database', [
|
||||
.done(function(res) {
|
||||
if (res.success == 1) {
|
||||
var prv_i = t.parent(i);
|
||||
if(res.data.info_prefix) {
|
||||
res.info = `${_.escape(res.data.info_prefix)} - ${res.info}`;
|
||||
}
|
||||
Alertify.success(res.info);
|
||||
t.removeIcon(i);
|
||||
data.connected = false;
|
||||
@@ -519,6 +522,9 @@ define('pgadmin.node.database', [
|
||||
data.icon = res.data.icon;
|
||||
tree.addIcon(item, {icon: data.icon});
|
||||
}
|
||||
if(res.data.info_prefix) {
|
||||
res.info = `${_.escape(res.data.info_prefix)} - ${res.info}`;
|
||||
}
|
||||
|
||||
Alertify.success(res.info);
|
||||
obj.trigger('connected', obj, item, data);
|
||||
|
Reference in New Issue
Block a user