mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Fixed schedules type value.
This commit is contained in:
parent
47218c17e4
commit
034a5c7044
@ -521,6 +521,16 @@ angular.module('SchedulesHelper', ['Utilities', 'RestServices', 'SchedulesHelper
|
||||
itm.status = 'stopped';
|
||||
itm.status_tip = 'Schedule is temporarily stopped. Click to activate.';
|
||||
}
|
||||
|
||||
// Copy summary_field values
|
||||
for (field in list.fields) {
|
||||
fld = list.fields[field];
|
||||
if (fld.sourceModel) {
|
||||
if (itm.summary_fields[fld.sourceModel]) {
|
||||
itm[field] = itm.summary_fields[fld.sourceModel][fld.sourceField];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set the item type label
|
||||
if (list.fields.type) {
|
||||
@ -533,15 +543,6 @@ angular.module('SchedulesHelper', ['Utilities', 'RestServices', 'SchedulesHelper
|
||||
});
|
||||
}
|
||||
|
||||
// Copy summary_field values
|
||||
for (field in list.fields) {
|
||||
fld = list.fields[field];
|
||||
if (fld.sourceModel) {
|
||||
if (itm.summary_fields[fld.sourceModel]) {
|
||||
itm[field] = itm.summary_fields[fld.sourceModel][fld.sourceField];
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
parent_scope.$emit('listLoaded');
|
||||
});
|
||||
|
||||
@ -42,8 +42,11 @@ angular.module('ScheduledJobsDefinition', [])
|
||||
label: 'Type',
|
||||
link: false,
|
||||
columnClass: "col-md-2 hidden-sm hidden-xs",
|
||||
sourceModel: 'unified_job_template',
|
||||
sourceField: 'type',
|
||||
ngBind: 'schedule.type_label',
|
||||
searchable: false
|
||||
searchable: false,
|
||||
nosort: true
|
||||
},
|
||||
name: {
|
||||
label: 'Name',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user