mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
Make source field required and don't filter out Manual source type
This commit is contained in:
parent
ed3e03644b
commit
7d2e1de424
@ -11,7 +11,7 @@ export default
|
||||
.success(function (data) {
|
||||
var i, choices = data.actions.GET.source.choices;
|
||||
for (i = 0; i < choices.length; i++) {
|
||||
if (choices[i][0] !== 'file' && choices[i][0] !== "") {
|
||||
if (choices[i][0] !== 'file') {
|
||||
scope[variable].push({
|
||||
label: choices[i][1],
|
||||
value: choices[i][0]
|
||||
|
||||
@ -60,6 +60,7 @@ return {
|
||||
source: {
|
||||
label: i18n._('Source'),
|
||||
type: 'select',
|
||||
required: true,
|
||||
ngOptions: 'source.label for source in source_type_options track by source.value',
|
||||
ngChange: 'sourceChange(source)',
|
||||
ngDisabled: '!(inventory_source_obj.summary_fields.user_capabilities.edit || canAdd)',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user