mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
Merge pull request #3373 from AlexSCorey/2960-addTemplateTitlePromptDiag
add template name to launch prompt modal. Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -68,6 +68,7 @@ function atLaunchTemplateCtrl (
|
|||||||
launchConf: launchData.data,
|
launchConf: launchData.data,
|
||||||
launchOptions: launchOptions.data,
|
launchOptions: launchOptions.data,
|
||||||
template: vm.template.id,
|
template: vm.template.id,
|
||||||
|
templateName: vm.template.name,
|
||||||
templateType: vm.template.type,
|
templateType: vm.template.type,
|
||||||
prompts: PromptService.processPromptValues({
|
prompts: PromptService.processPromptValues({
|
||||||
launchConf: launchData.data,
|
launchConf: launchData.data,
|
||||||
@@ -122,6 +123,7 @@ function atLaunchTemplateCtrl (
|
|||||||
launchConf: selectedWorkflowJobTemplate.getLaunchConf(),
|
launchConf: selectedWorkflowJobTemplate.getLaunchConf(),
|
||||||
launchOptions: launchOptions.data,
|
launchOptions: launchOptions.data,
|
||||||
template: vm.template.id,
|
template: vm.template.id,
|
||||||
|
templateName: vm.template.name,
|
||||||
templateType: vm.template.type,
|
templateType: vm.template.type,
|
||||||
prompts: PromptService.processPromptValues({
|
prompts: PromptService.processPromptValues({
|
||||||
launchConf: selectedWorkflowJobTemplate.getLaunchConf(),
|
launchConf: selectedWorkflowJobTemplate.getLaunchConf(),
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export default [ 'ProcessErrors', 'CredentialTypeModel', 'TemplatesStrings',
|
export default [ 'ProcessErrors', 'CredentialTypeModel', 'TemplatesStrings', '$filter',
|
||||||
function (ProcessErrors, CredentialType, strings) {
|
function (ProcessErrors, CredentialType, strings, $filter) {
|
||||||
|
|
||||||
const vm = this || {};
|
const vm = this || {};
|
||||||
|
|
||||||
@@ -181,7 +181,7 @@ export default [ 'ProcessErrors', 'CredentialTypeModel', 'TemplatesStrings',
|
|||||||
}
|
}
|
||||||
vm.steps.preview.tab.order = order;
|
vm.steps.preview.tab.order = order;
|
||||||
vm.steps.preview.tab._disabled = vm.readOnlyPrompts ? false : true;
|
vm.steps.preview.tab._disabled = vm.readOnlyPrompts ? false : true;
|
||||||
modal.show(strings.get('prompt.PROMPT'));
|
modal.show($filter('sanitize')(vm.promptDataClone.templateName));
|
||||||
vm.promptData.triggerModalOpen = false;
|
vm.promptData.triggerModalOpen = false;
|
||||||
|
|
||||||
modal.onClose = () => {
|
modal.onClose = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user