diff --git a/awx/ui/client/src/controllers/Projects.js b/awx/ui/client/src/controllers/Projects.js index e97194c1b1..58cb8f165b 100644 --- a/awx/ui/client/src/controllers/Projects.js +++ b/awx/ui/client/src/controllers/Projects.js @@ -415,6 +415,7 @@ export function ProjectsAdd($scope, $rootScope, $compile, $location, $log, if ($scope.scm_type.value) { switch ($scope.scm_type.value) { case 'git': + $scope.credentialLabel = "SCM Credential"; $scope.urlPopover = '
' + i18n._('Example URLs for GIT SCM include:') + '
' + i18n._('Example URLs for Subversion SCM include:') + '
' + '' + i18n._('Example URLs for Mercurial SCM include:') + '
' + '' + i18n._('URL popover text'); } } diff --git a/awx/ui/client/src/forms/Projects.js b/awx/ui/client/src/forms/Projects.js index d5f165bce8..a89fb6e277 100644 --- a/awx/ui/client/src/forms/Projects.js +++ b/awx/ui/client/src/forms/Projects.js @@ -105,7 +105,7 @@ angular.module('ProjectFormDefinition', ['SchedulesListDefinition']) scm_url: { label: 'SCM URL', type: 'text', - ngShow: "scm_type && scm_type.value !== 'manual'", + ngShow: "scm_type && scm_type.value !== 'manual' && scm_type.value !== 'insights' ", awRequiredWhen: { reqExpression: "scmRequired", init: false @@ -122,12 +122,13 @@ angular.module('ProjectFormDefinition', ['SchedulesListDefinition']) scm_branch: { labelBind: "scmBranchLabel", type: 'text', - ngShow: "scm_type && scm_type.value !== 'manual'", + ngShow: "scm_type && scm_type.value !== 'manual' && scm_type.value !== 'insights'", ngDisabled: '!(project_obj.summary_fields.user_capabilities.edit || canAdd)', subForm: 'sourceSubForm', }, credential: { - label: i18n._('SCM Credential'), + // label: i18n._('SCM Credential'), + labelBind: 'credentialLabel', type: 'lookup', basePath: 'credentials', list: 'CredentialList',