support for editing an insights project

This commit is contained in:
jaredevantabor 2017-02-15 17:01:13 -05:00 committed by Matthew Jones
parent 0ff837449b
commit 7d4544595a
2 changed files with 6 additions and 2 deletions

View File

@ -443,7 +443,7 @@ export function ProjectsAdd($scope, $rootScope, $compile, $location, $log,
$scope.pathRequired = false;
$scope.scmRequired = false;
$scope.credentialLabel = "Red Hat Insights";
break;
break;
default:
$scope.credentialLabel = "SCM Credential";
$scope.urlPopover = '<p> ' + i18n._('URL popover text');
@ -727,6 +727,11 @@ export function ProjectsEdit($scope, $rootScope, $compile, $location, $log,
'Do not put the username and key in the URL. ' +
'If using Bitbucket and SSH, do not supply your Bitbucket username.'), '<strong>', '</strong>');
break;
case 'insights':
$scope.pathRequired = false;
$scope.scmRequired = false;
$scope.credentialLabel = "Red Hat Insights";
break;
default:
$scope.urlPopover = '<p> ' + i18n._('URL popover text');
}

View File

@ -127,7 +127,6 @@ angular.module('ProjectFormDefinition', ['SchedulesListDefinition'])
subForm: 'sourceSubForm',
},
credential: {
// label: i18n._('SCM Credential'),
labelBind: 'credentialLabel',
type: 'lookup',
basePath: 'credentials',