Make source field required and don't filter out Manual source type

This commit is contained in:
Michael Abashian 2017-07-01 22:48:55 -04:00
parent ed3e03644b
commit 7d2e1de424
2 changed files with 2 additions and 1 deletions

View File

@ -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]

View File

@ -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)',