Ensure the save password option is enabled when creating a server. Fixes #2540
parent
e5bedf088e
commit
ca7fe9a520
|
@ -692,7 +692,7 @@ define('pgadmin.node.server', [
|
||||||
return m.get('connect_now') && m.isNew();
|
return m.get('connect_now') && m.isNew();
|
||||||
},
|
},
|
||||||
disabled: function(m) {
|
disabled: function(m) {
|
||||||
return current_user.allow_save_password;
|
return !current_user.allow_save_password;
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
id: 'role', label: gettext('Role'), type: 'text', group: gettext('Connection'),
|
id: 'role', label: gettext('Role'), type: 'text', group: gettext('Connection'),
|
||||||
|
|
Loading…
Reference in New Issue