From 54640dbca0abaf766243dce8a05c9825bae57bb3 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Tue, 10 Oct 2017 17:08:04 -0400 Subject: [PATCH] hide workflow and survey buttons from non-detail tabs since the two are basically sub-states of the edit form (detail tab), they should only show up when that tab is selected --- 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 106d011cb6..ae147de530 100644 --- a/awx/ui/client/src/templates/workflows.form.js +++ b/awx/ui/client/src/templates/workflows.form.js @@ -163,7 +163,7 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) { }, add_survey: { ngClick: 'addSurvey()', - ngShow: '!survey_exists && ($state.includes(\'templates.addWorkflowJobTemplate\') || $state.includes(\'templates.editWorkflowJobTemplate\'))', + ngShow: '!survey_exists && ($state.is(\'templates.addWorkflowJobTemplate\') || $state.is(\'templates.editWorkflowJobTemplate\'))', awFeature: 'surveys', awToolTip: '{{surveyTooltip}}', dataPlacement: 'top', @@ -173,7 +173,7 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) { edit_survey: { ngClick: 'editSurvey()', awFeature: 'surveys', - ngShow: 'survey_exists && ($state.includes(\'templates.addWorkflowJobTemplate\') || $state.includes(\'templates.editWorkflowJobTemplate\'))', + ngShow: 'survey_exists && ($state.is(\'templates.addWorkflowJobTemplate\') || $state.is(\'templates.editWorkflowJobTemplate\'))', label: i18n._('Edit Survey'), class: 'Form-primaryButton', awToolTip: '{{surveyTooltip}}', @@ -181,7 +181,7 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) { }, workflow_editor: { ngClick: 'openWorkflowMaker()', - ngShow: '$state.includes(\'templates.addWorkflowJobTemplate\') || $state.includes(\'templates.editWorkflowJobTemplate\')', + ngShow: '$state.is(\'templates.addWorkflowJobTemplate\') || $state.is(\'templates.editWorkflowJobTemplate\')', awToolTip: '{{workflowEditorTooltip}}', dataPlacement: 'top', label: i18n._('Workflow Editor'),