From 0083a9279bff285b62542f43338492c00ee3ff63 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Wed, 28 Jun 2017 18:01:33 -0400 Subject: [PATCH] Show survey and workflow editor buttons even when the editor is open --- awx/ui/client/src/templates/workflows.form.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/client/src/templates/workflows.form.js b/awx/ui/client/src/templates/workflows.form.js index a929e8b77e..dab524019a 100644 --- a/awx/ui/client/src/templates/workflows.form.js +++ b/awx/ui/client/src/templates/workflows.form.js @@ -165,7 +165,7 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) { }, add_survey: { 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', 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', @@ -175,13 +175,13 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) { edit_survey: { ngClick: 'editSurvey()', 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'), class: 'Form-primaryButton' }, workflow_editor: { 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'), dataPlacement: 'top', label: i18n._('Workflow Editor'),