mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Show survey and workflow editor buttons even when the editor is open
This commit is contained in:
@@ -165,7 +165,7 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) {
|
|||||||
},
|
},
|
||||||
add_survey: {
|
add_survey: {
|
||||||
ngClick: 'addSurvey()',
|
ngClick: 'addSurvey()',
|
||||||
ngShow: '!survey_exists && ($state.is(\'templates.addWorkflowJobTemplate\') || $state.is(\'templates.editWorkflowJobTemplate\'))',
|
ngShow: '!survey_exists && ($state.includes(\'templates.addWorkflowJobTemplate\') || $state.includes(\'templates.editWorkflowJobTemplate\'))',
|
||||||
awFeature: 'surveys',
|
awFeature: 'surveys',
|
||||||
awToolTip: 'Surveys allow users to be prompted at job launch with a series of questions related to the job. This allows for variables to be defined that affect the playbook run at time of launch.',
|
awToolTip: 'Surveys allow users to be prompted at job launch with a series of questions related to the job. This allows for variables to be defined that affect the playbook run at time of launch.',
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
@@ -175,13 +175,13 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) {
|
|||||||
edit_survey: {
|
edit_survey: {
|
||||||
ngClick: 'editSurvey()',
|
ngClick: 'editSurvey()',
|
||||||
awFeature: 'surveys',
|
awFeature: 'surveys',
|
||||||
ngShow: 'survey_exists && ($state.is(\'templates.addWorkflowJobTemplate\') || $state.is(\'templates.editWorkflowJobTemplate\'))',
|
ngShow: 'survey_exists && ($state.includes(\'templates.addWorkflowJobTemplate\') || $state.includes(\'templates.editWorkflowJobTemplate\'))',
|
||||||
label: i18n._('Edit Survey'),
|
label: i18n._('Edit Survey'),
|
||||||
class: 'Form-primaryButton'
|
class: 'Form-primaryButton'
|
||||||
},
|
},
|
||||||
workflow_editor: {
|
workflow_editor: {
|
||||||
ngClick: 'openWorkflowMaker()',
|
ngClick: 'openWorkflowMaker()',
|
||||||
ngShow: '$state.is(\'templates.addWorkflowJobTemplate\') || $state.is(\'templates.editWorkflowJobTemplate\')',
|
ngShow: '$state.includes(\'templates.addWorkflowJobTemplate\') || $state.includes(\'templates.editWorkflowJobTemplate\')',
|
||||||
awToolTip: i18n._('Please save before defining the workflow graph'),
|
awToolTip: i18n._('Please save before defining the workflow graph'),
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
label: i18n._('Workflow Editor'),
|
label: i18n._('Workflow Editor'),
|
||||||
|
|||||||
Reference in New Issue
Block a user