mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 11:10:03 -03:30
resolves kickback on #2862
This commit is contained in:
@@ -45,14 +45,17 @@ export default
|
|||||||
sourceModel: 'unified_job_template',
|
sourceModel: 'unified_job_template',
|
||||||
sourceField: 'unified_job_type',
|
sourceField: 'unified_job_type',
|
||||||
ngBind: 'schedule.type_label',
|
ngBind: 'schedule.type_label',
|
||||||
searchField: 'unified_job_template__name',
|
searchField: 'unified_job_template__polymorphic_ctype__model',
|
||||||
searchLable: 'Type',
|
filterBySearchField: true,
|
||||||
|
searchLabel: 'Type',
|
||||||
searchable: true,
|
searchable: true,
|
||||||
searchType: 'select',
|
searchType: 'select',
|
||||||
searchOptions: [
|
searchOptions: [
|
||||||
{ value: 'inventory source', label: 'Inventory Sync' },
|
{ value: 'inventorysource', label: 'Inventory Sync' },
|
||||||
{ value: 'job template', label: 'Playbook Run' },
|
{ value: 'jobtemplate', label: 'Playbook Run' },
|
||||||
{ value: 'project', label: 'SCM Update' }
|
{ value: 'project', label: 'SCM Update' },
|
||||||
|
{ value: 'systemjobtemplate', label: 'Management Job'}
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
next_run: {
|
next_run: {
|
||||||
|
|||||||
@@ -6,7 +6,12 @@ export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', '$log', fu
|
|||||||
var obj = {};
|
var obj = {};
|
||||||
// build the value (key)
|
// build the value (key)
|
||||||
var value;
|
var value;
|
||||||
if (field.sourceModel && field.sourceField) {
|
console.log(field)
|
||||||
|
if (field.searchField && field.filterBySearchField === true){
|
||||||
|
value = field.searchField;
|
||||||
|
}
|
||||||
|
else if (field.sourceModel && field.sourceField) {
|
||||||
|
console.log('condition met 2')
|
||||||
value = field.sourceModel + '__' + field.sourceField;
|
value = field.sourceModel + '__' + field.sourceField;
|
||||||
obj.related = true;
|
obj.related = true;
|
||||||
} else if (typeof(field.key) === String) {
|
} else if (typeof(field.key) === String) {
|
||||||
|
|||||||
Reference in New Issue
Block a user