From f3e4780c7a1dc2ec5e5f3da29015d3626464aace Mon Sep 17 00:00:00 2001 From: Haokun-Chen Date: Thu, 21 Jun 2018 12:27:35 -0400 Subject: [PATCH] change workflow editor to workflow visualizer --- awx/ui/client/src/shared/form-generator.js | 4 ++-- awx/ui/client/src/templates/workflows.form.js | 6 +++--- .../workflows/edit-workflow/workflow-edit.controller.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index 574e8e8342..5aeb590a81 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -1728,8 +1728,8 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat button.label = i18n._('View Survey'); button['class'] = 'Form-surveyButton'; } - if (btn === 'workflow_editor') { - button.label = i18n._('Workflow Editor'); + if (btn === 'workflow_visualizer') { + button.label = i18n._('Workflow Visualizer'); button['class'] = 'Form-primaryButton'; } diff --git a/awx/ui/client/src/templates/workflows.form.js b/awx/ui/client/src/templates/workflows.form.js index b484d33c7e..104447bae4 100644 --- a/awx/ui/client/src/templates/workflows.form.js +++ b/awx/ui/client/src/templates/workflows.form.js @@ -214,12 +214,12 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) { awToolTip: '{{surveyTooltip}}', dataPlacement: 'top' }, - workflow_editor: { + workflow_visualizer: { ngClick: 'openWorkflowMaker()', ngShow: '$state.is(\'templates.addWorkflowJobTemplate\') || $state.is(\'templates.editWorkflowJobTemplate\') || $state.is(\'templates.editWorkflowJobTemplate.workflowMaker\')', - awToolTip: '{{workflowEditorTooltip}}', + awToolTip: '{{workflowVisualizerTooltip}}', dataPlacement: 'top', - label: i18n._('Workflow Editor'), + label: i18n._('Workflow Visualizer'), class: 'Form-primaryButton' } } diff --git a/awx/ui/client/src/templates/workflows/edit-workflow/workflow-edit.controller.js b/awx/ui/client/src/templates/workflows/edit-workflow/workflow-edit.controller.js index 37053ffc9e..506ca9ba62 100644 --- a/awx/ui/client/src/templates/workflows/edit-workflow/workflow-edit.controller.js +++ b/awx/ui/client/src/templates/workflows/edit-workflow/workflow-edit.controller.js @@ -258,7 +258,7 @@ export default [ opts: opts }); - $scope.workflowEditorTooltip = i18n._("Click here to open the workflow graph editor."); + $scope.workflowVisualizerTooltip = i18n._("Click here to open the workflow visualizer."); $scope.surveyTooltip = i18n._('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.'); $scope.workflow_job_template_obj = workflowJobTemplateData;