mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
disable toggle on individual schedule pages, also show view schedule buttons even if user doesn't have edit permission
This commit is contained in:
parent
4b2daba3f7
commit
55643d5a1d
@ -140,7 +140,7 @@ export default
|
||||
awToolTip: "{{ group.group_schedule_tooltip }}",
|
||||
ngClass: "group.scm_type_class",
|
||||
dataPlacement: 'top',
|
||||
ngShow: "!(group.summary_fields.inventory_source.source === '') && group.summary_fields.user_capabilities.schedule"
|
||||
ngShow: "!(group.summary_fields.inventory_source.source === '')"
|
||||
},
|
||||
edit: {
|
||||
//label: 'Edit',
|
||||
|
||||
@ -97,7 +97,6 @@ export default
|
||||
awToolTip: "{{ project.scm_schedule_tooltip }}",
|
||||
ngClass: "project.scm_type_class",
|
||||
dataPlacement: 'top',
|
||||
ngShow: "project.summary_fields.user_capabilities.schedule"
|
||||
},
|
||||
edit: {
|
||||
ngClick: "editProject(project.id)",
|
||||
|
||||
@ -19,6 +19,7 @@ export default
|
||||
|
||||
fields: {
|
||||
toggleSchedule: {
|
||||
ngDisabled: "!schedule.summary_fields.user_capabilities.edit",
|
||||
label: '',
|
||||
columnClass: 'List-staticColumn--toggle',
|
||||
type: "toggle",
|
||||
|
||||
@ -94,7 +94,6 @@ export default
|
||||
ngClick: 'scheduleJob(template)',
|
||||
awToolTip: i18n._('Schedule future job template runs'),
|
||||
dataPlacement: 'top',
|
||||
ngShow: 'template.summary_fields.user_capabilities.schedule'
|
||||
},
|
||||
copy: {
|
||||
label: i18n._('Copy'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user