1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Add enabled/disabled toggle to Jobs > Schedules view (#2253)

* add toggle column to jobs > schedules view, resolves #2239

* remove redundant status indicator
This commit is contained in:
Leigh 2016-06-09 09:57:49 -04:00
parent f9a5955cc0
commit 69795a7864

View File

@ -12,22 +12,21 @@ export default
name: 'schedules',
iterator: 'schedule',
editTitle: 'Scheduled Jobs',
index: true,
hover: true,
well: false,
emptyListText: 'No schedules exist',
fields: {
status: {
enabled: {
label: '',
columnClass: 'List-staticColumn--smallStatus',
awToolTip: "{{ schedule.status_tip }}",
awTipPlacement: "right",
icon: 'icon-job-{{ schedule.status }}',
iconOnly: true,
columnClass: 'List-staticColumn--toggle',
type: 'toggle',
ngClick: "toggleSchedule($event, schedule.id)",
searchable: false,
nosort: true
nosort: true,
awToolTip: "{{ schedule.play_tip }}",
dataTipWatch: "schedule.play_tip",
dataPlacement: 'top'
},
name: {
label: 'Name',
@ -63,7 +62,7 @@ export default
columnClass: "col-lg-3 col-md-2 col-sm-3 hidden-xs",
filter: "longDate",
key: true
},
}
},
actions: { },
@ -71,15 +70,6 @@ export default
fieldActions: {
columnClass: 'col-lg-3 col-md-3 col-sm-3 col-xs-5',
"play": {
mode: "all",
ngClick: "toggleSchedule($event, schedule.id)",
awToolTip: "{{ schedule.play_tip }}",
dataTipWatch: "schedule.play_tip",
iconClass: "{{ 'fa icon-schedule-enabled-' + schedule.enabled }}",
dataPlacement: 'top'
},
"edit": {
mode: "all",
ngClick: "editSchedule(schedule.id)",