mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 06:29:31 -02:30
open workflow visualizer from form
This commit is contained in:
@@ -238,6 +238,14 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) {
|
|||||||
class: 'Form-primaryButton',
|
class: 'Form-primaryButton',
|
||||||
awToolTip: '{{surveyTooltip}}',
|
awToolTip: '{{surveyTooltip}}',
|
||||||
dataPlacement: 'top'
|
dataPlacement: 'top'
|
||||||
|
},
|
||||||
|
workflow_visualizer: {
|
||||||
|
ngClick: 'openWorkflowMaker()',
|
||||||
|
ngShow: '$state.is(\'templates.addWorkflowJobTemplate\') || $state.is(\'templates.editWorkflowJobTemplate\') || $state.is(\'templates.editWorkflowJobTemplate.workflowMaker\')',
|
||||||
|
awToolTip: '{{workflowVisualizerTooltip}}',
|
||||||
|
dataPlacement: 'top',
|
||||||
|
label: i18n._('Workflow Visualizer'),
|
||||||
|
class: 'Form-primaryButton'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -60,6 +60,10 @@ export default [
|
|||||||
$scope.inventory_name = Inventory.name;
|
$scope.inventory_name = Inventory.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.openWorkflowMaker = function() {
|
||||||
|
$state.go('.workflowMaker');
|
||||||
|
};
|
||||||
|
|
||||||
$scope.formSave = function () {
|
$scope.formSave = function () {
|
||||||
let fld, data = {};
|
let fld, data = {};
|
||||||
$scope.invalid_survey = false;
|
$scope.invalid_survey = false;
|
||||||
@@ -262,6 +266,7 @@ export default [
|
|||||||
opts: opts
|
opts: opts
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$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.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;
|
$scope.workflow_job_template_obj = workflowJobTemplateData;
|
||||||
|
|||||||
@@ -360,7 +360,6 @@ export default ['$scope', 'WorkflowService', 'TemplatesService',
|
|||||||
// Revert the data to the master which was created when the dialog was opened
|
// Revert the data to the master which was created when the dialog was opened
|
||||||
$scope.treeData.data = angular.copy($scope.treeDataMaster);
|
$scope.treeData.data = angular.copy($scope.treeDataMaster);
|
||||||
$scope.closeDialog();
|
$scope.closeDialog();
|
||||||
$state.transitionTo('templates');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.saveWorkflowMaker = function () {
|
$scope.saveWorkflowMaker = function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user