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