Ensure the save password option is enabled when creating a server. Fixes #2540

This commit is contained in:
Murtuza Zabuawala 2017-07-06 13:33:46 +01:00 committed by Dave Page
parent e5bedf088e
commit ca7fe9a520

View File

@ -692,7 +692,7 @@ define('pgadmin.node.server', [
return m.get('connect_now') && m.isNew();
},
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'),