mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 06:26:00 -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:
@@ -140,7 +140,7 @@ export default
|
|||||||
awToolTip: "{{ group.group_schedule_tooltip }}",
|
awToolTip: "{{ group.group_schedule_tooltip }}",
|
||||||
ngClass: "group.scm_type_class",
|
ngClass: "group.scm_type_class",
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
ngShow: "!(group.summary_fields.inventory_source.source === '') && group.summary_fields.user_capabilities.schedule"
|
ngShow: "!(group.summary_fields.inventory_source.source === '')"
|
||||||
},
|
},
|
||||||
edit: {
|
edit: {
|
||||||
//label: 'Edit',
|
//label: 'Edit',
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ export default
|
|||||||
awToolTip: "{{ project.scm_schedule_tooltip }}",
|
awToolTip: "{{ project.scm_schedule_tooltip }}",
|
||||||
ngClass: "project.scm_type_class",
|
ngClass: "project.scm_type_class",
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
ngShow: "project.summary_fields.user_capabilities.schedule"
|
|
||||||
},
|
},
|
||||||
edit: {
|
edit: {
|
||||||
ngClick: "editProject(project.id)",
|
ngClick: "editProject(project.id)",
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export default
|
|||||||
|
|
||||||
fields: {
|
fields: {
|
||||||
toggleSchedule: {
|
toggleSchedule: {
|
||||||
|
ngDisabled: "!schedule.summary_fields.user_capabilities.edit",
|
||||||
label: '',
|
label: '',
|
||||||
columnClass: 'List-staticColumn--toggle',
|
columnClass: 'List-staticColumn--toggle',
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
|
|||||||
@@ -94,7 +94,6 @@ export default
|
|||||||
ngClick: 'scheduleJob(template)',
|
ngClick: 'scheduleJob(template)',
|
||||||
awToolTip: i18n._('Schedule future job template runs'),
|
awToolTip: i18n._('Schedule future job template runs'),
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
ngShow: 'template.summary_fields.user_capabilities.schedule'
|
|
||||||
},
|
},
|
||||||
copy: {
|
copy: {
|
||||||
label: i18n._('Copy'),
|
label: i18n._('Copy'),
|
||||||
|
|||||||
Reference in New Issue
Block a user