mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
Fixed schedules type value.
This commit is contained in:
@@ -521,6 +521,16 @@ angular.module('SchedulesHelper', ['Utilities', 'RestServices', 'SchedulesHelper
|
|||||||
itm.status = 'stopped';
|
itm.status = 'stopped';
|
||||||
itm.status_tip = 'Schedule is temporarily stopped. Click to activate.';
|
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
|
// Set the item type label
|
||||||
if (list.fields.type) {
|
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');
|
parent_scope.$emit('listLoaded');
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -42,8 +42,11 @@ angular.module('ScheduledJobsDefinition', [])
|
|||||||
label: 'Type',
|
label: 'Type',
|
||||||
link: false,
|
link: false,
|
||||||
columnClass: "col-md-2 hidden-sm hidden-xs",
|
columnClass: "col-md-2 hidden-sm hidden-xs",
|
||||||
|
sourceModel: 'unified_job_template',
|
||||||
|
sourceField: 'type',
|
||||||
ngBind: 'schedule.type_label',
|
ngBind: 'schedule.type_label',
|
||||||
searchable: false
|
searchable: false,
|
||||||
|
nosort: true
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
label: 'Name',
|
label: 'Name',
|
||||||
|
|||||||
Reference in New Issue
Block a user