fixed defect with GCE cred's not showing up in inventory groups modal window

This commit is contained in:
Jared Tabor
2014-07-22 16:24:34 -04:00
committed by Luke Sneeringer
parent a05aac8a50
commit 5df7833038
4 changed files with 28 additions and 4 deletions

View File

@@ -141,7 +141,17 @@ angular.module('CredentialFormDefinition', [])
"username": {
labelBind: 'usernameLabel',
type: 'text',
ngShow: "kind.value && kind.value !== 'aws'",
ngShow: "kind.value && kind.value !== 'aws' && kind.value!=='gce'",
awRequiredWhen: {
variable: 'aws_required',
init: false
},
autocomplete: false
},
"email_address": {
labelBind: 'usernameLabel',
type: 'email',
ngShow: "kind.value === 'gce'",
awRequiredWhen: {
variable: 'username_required',
init: false
@@ -159,7 +169,7 @@ angular.module('CredentialFormDefinition', [])
autocomplete: false,
ask: false,
clear: false,
apiField: 'passwowrd'
// apiField: 'passwowrd'
},
"password": {
label: 'Password',