1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Merge pull request #6790 from mabashian/4853-survey-workflow-buttons

Show survey and workflow editor buttons even when the editor is open
This commit is contained in:
Michael Abashian 2017-06-29 10:37:07 -04:00 committed by GitHub
commit e2e57c20d6

View File

@ -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: '{{surveyTooltip}}',
dataPlacement: 'top',
@ -175,7 +175,7 @@ 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',
awToolTip: '{{surveyTooltip}}',
@ -183,7 +183,7 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) {
},
workflow_editor: {
ngClick: 'openWorkflowMaker()',
ngShow: '$state.is(\'templates.addWorkflowJobTemplate\') || $state.is(\'templates.editWorkflowJobTemplate\')',
ngShow: '$state.includes(\'templates.addWorkflowJobTemplate\') || $state.includes(\'templates.editWorkflowJobTemplate\')',
awToolTip: '{{workflowEditorTooltip}}',
dataPlacement: 'top',
label: i18n._('Workflow Editor'),