mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-07 22:53:45 -06:00
Fixed an issue where multiple errors were showing if user does not have connect privileges. #7073
This commit is contained in:
parent
ad0567bd85
commit
b28df5874e
@ -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,
|
||||
|
@ -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')) {
|
||||
|
Loading…
Reference in New Issue
Block a user