Fix privilege escalation password label on launch

This commit is contained in:
mabashian
2017-07-26 14:59:12 -04:00
parent 3ea648df14
commit 7867a0b692
4 changed files with 24 additions and 23 deletions

View File

@@ -292,7 +292,7 @@ export default ['i18n', function(i18n) {
ngChange: 'becomeMethodChange()',
},
"become_username": {
labelBind: 'becomeUsernameLabel',
label: i18n._('Privilege Escalation Username'),
type: 'text',
ngShow: "(kind.value == 'ssh' && (become_method && become_method.value)) ",
@@ -302,7 +302,7 @@ export default ['i18n', function(i18n) {
ngDisabled: '!(credential_obj.summary_fields.user_capabilities.edit || canAdd)'
},
"become_password": {
labelBind: 'becomePasswordLabel',
label: i18n._('Privilege Escalation Password'),
type: 'sensitive',
ngShow: "(kind.value == 'ssh' && (become_method && become_method.value)) ",
ngDisabled: "become_password_ask || !(credential_obj.summary_fields.user_capabilities.edit || canAdd)",

View File

@@ -15,8 +15,6 @@ export default
break;
case 'ssh':
scope.usernameLabel = i18n._('Username'); //formally 'SSH Username'
scope.becomeUsernameLabel = i18n._('Privilege Escalation Username');
scope.becomePasswordLabel = i18n._('Privilege Escalation Password');
break;
case 'scm':
scope.sshKeyDataLabel = i18n._('SCM Private Key');

View File

@@ -72,8 +72,6 @@ export default
break;
case 'ssh':
scope.usernameLabel = i18n._('Username'); //formally 'SSH Username'
scope.becomeUsernameLabel = i18n._('Privilege Escalation Username');
scope.becomePasswordLabel = i18n._('Privilege Escalation Password');
break;
case 'scm':
scope.sshKeyDataLabel = i18n._('SCM Private Key');