Fixed an issue where multiple errors were showing if user does not have connect privileges. #7073

This commit is contained in:
Pravesh Sharma 2024-01-12 17:20:51 +05:30 committed by GitHub
parent ad0567bd85
commit b28df5874e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -421,7 +421,7 @@ define('pgadmin.node.database', [
setTimeout(function() {
if (msg == 'CRYPTKEY_SET') {
connect_to_database(_model, _data, _tree, _item, _wasConnected);
} else {
} else if (msg != 'ALERT_CALLED') {
showServerPassword(
gettext('Connect to database'),
msg, _model, _data, _tree, _item, _status,

View File

@ -164,7 +164,7 @@ class Notifier {
return onJSONResult();
}
this.alert(promptmsg, msg.replace(new RegExp(/\r?\n/, 'g'), '<br />'));
onJSONResult();
onJSONResult('ALERT_CALLED');
}
alert(title, text, onOkClick, okLabel=gettext('OK')) {