From affa6758192a7012f7a137535f5823771ee3bd80 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 8 Aug 2014 11:00:39 -0400 Subject: [PATCH] changed vmware host credential label to read vCenter Host --- awx/ui/static/js/forms/Credentials.js | 2 +- awx/ui/static/js/helpers/Credentials.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/ui/static/js/forms/Credentials.js b/awx/ui/static/js/forms/Credentials.js index a491db34ee..d2583caf88 100644 --- a/awx/ui/static/js/forms/Credentials.js +++ b/awx/ui/static/js/forms/Credentials.js @@ -146,7 +146,7 @@ angular.module('CredentialFormDefinition', []) apiField: 'passwowrd' }, "host": { - label: 'Host', + labelBind: 'hostLabel', type: 'text', ngShow: "kind.value == 'vmware'", autocomplete: false, diff --git a/awx/ui/static/js/helpers/Credentials.js b/awx/ui/static/js/helpers/Credentials.js index c8791888df..151e29f256 100644 --- a/awx/ui/static/js/helpers/Credentials.js +++ b/awx/ui/static/js/helpers/Credentials.js @@ -41,6 +41,7 @@ angular.module('CredentialsHelper', ['Utilities']) scope.key_hint= "drag and drop an SSH private key file on the field below"; scope.host_required = false; scope.password_required = false; + scope.hostLabel = ''; if (!Empty(scope.kind)) { // Apply kind specific settings @@ -79,6 +80,7 @@ angular.module('CredentialsHelper', ['Utilities']) scope.username_required = true; scope.host_required = true; scope.password_required = true; + scope.hostLabel = "vCenter Host"; break; } }