Fixed an issue where an operation error message pop up showing the database object's name incorrectly. Fixes #7078

This commit is contained in:
Nikhil Mohite
2021-12-28 13:49:04 +05:30
committed by Akshay Joshi
parent 603d91be0e
commit 191e2b6242
6 changed files with 10 additions and 8 deletions

View File

@@ -233,7 +233,7 @@ define('pgadmin.node.database', [
if(res.data.info_prefix) {
res.info = `${_.escape(res.data.info_prefix)} - ${res.info}`;
}
Notify.success(res.info);
Notify.success(_.unescape(res.info));
t.removeIcon(i);
data.connected = false;
data.icon = 'icon-database-not-connected';
@@ -467,7 +467,7 @@ define('pgadmin.node.database', [
res.info = gettext('Database already connected.');
}
if(res.data.info_prefix) {
res.info = `${_.escape(res.data.info_prefix)} - ${res.info}`;
res.info = `${res.data.info_prefix} - ${res.info}`;
}
if(res.data.already_connected) {
Notify.info(res.info);

View File

@@ -47,7 +47,7 @@ define(
text += '</div>';
Notify.alert(
title,
_.unescape(title),
text
)
.set({'closable': true,

View File

@@ -862,7 +862,7 @@ define('pgadmin.browser.node', [
* Make sure - we're using the correct version of node
*/
obj = pgBrowser.Nodes[d._type];
var objName = d.label;
var objName = _.unescape(d.label);
var msg, title;