mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
support for editing an insights project
This commit is contained in:
committed by
Matthew Jones
parent
0ff837449b
commit
7d4544595a
@@ -443,7 +443,7 @@ export function ProjectsAdd($scope, $rootScope, $compile, $location, $log,
|
|||||||
$scope.pathRequired = false;
|
$scope.pathRequired = false;
|
||||||
$scope.scmRequired = false;
|
$scope.scmRequired = false;
|
||||||
$scope.credentialLabel = "Red Hat Insights";
|
$scope.credentialLabel = "Red Hat Insights";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$scope.credentialLabel = "SCM Credential";
|
$scope.credentialLabel = "SCM Credential";
|
||||||
$scope.urlPopover = '<p> ' + i18n._('URL popover text');
|
$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. ' +
|
'Do not put the username and key in the URL. ' +
|
||||||
'If using Bitbucket and SSH, do not supply your Bitbucket username.'), '<strong>', '</strong>');
|
'If using Bitbucket and SSH, do not supply your Bitbucket username.'), '<strong>', '</strong>');
|
||||||
break;
|
break;
|
||||||
|
case 'insights':
|
||||||
|
$scope.pathRequired = false;
|
||||||
|
$scope.scmRequired = false;
|
||||||
|
$scope.credentialLabel = "Red Hat Insights";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$scope.urlPopover = '<p> ' + i18n._('URL popover text');
|
$scope.urlPopover = '<p> ' + i18n._('URL popover text');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,7 +127,6 @@ angular.module('ProjectFormDefinition', ['SchedulesListDefinition'])
|
|||||||
subForm: 'sourceSubForm',
|
subForm: 'sourceSubForm',
|
||||||
},
|
},
|
||||||
credential: {
|
credential: {
|
||||||
// label: i18n._('SCM Credential'),
|
|
||||||
labelBind: 'credentialLabel',
|
labelBind: 'credentialLabel',
|
||||||
type: 'lookup',
|
type: 'lookup',
|
||||||
basePath: 'credentials',
|
basePath: 'credentials',
|
||||||
|
|||||||
Reference in New Issue
Block a user