mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 14:11:24 -03: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:
commit
f95576764d
@ -68,6 +68,7 @@ function atLaunchTemplateCtrl (
|
||||
launchConf: launchData.data,
|
||||
launchOptions: launchOptions.data,
|
||||
template: vm.template.id,
|
||||
templateName: vm.template.name,
|
||||
templateType: vm.template.type,
|
||||
prompts: PromptService.processPromptValues({
|
||||
launchConf: launchData.data,
|
||||
@ -122,6 +123,7 @@ function atLaunchTemplateCtrl (
|
||||
launchConf: selectedWorkflowJobTemplate.getLaunchConf(),
|
||||
launchOptions: launchOptions.data,
|
||||
template: vm.template.id,
|
||||
templateName: vm.template.name,
|
||||
templateType: vm.template.type,
|
||||
prompts: PromptService.processPromptValues({
|
||||
launchConf: selectedWorkflowJobTemplate.getLaunchConf(),
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export default [ 'ProcessErrors', 'CredentialTypeModel', 'TemplatesStrings',
|
||||
function (ProcessErrors, CredentialType, strings) {
|
||||
export default [ 'ProcessErrors', 'CredentialTypeModel', 'TemplatesStrings', '$filter',
|
||||
function (ProcessErrors, CredentialType, strings, $filter) {
|
||||
|
||||
const vm = this || {};
|
||||
|
||||
@ -181,7 +181,7 @@ export default [ 'ProcessErrors', 'CredentialTypeModel', 'TemplatesStrings',
|
||||
}
|
||||
vm.steps.preview.tab.order = order;
|
||||
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;
|
||||
|
||||
modal.onClose = () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user