add template name to launch prompt modal.

This commit is contained in:
Alex Corey
2019-03-06 14:19:06 -05:00
parent d309acfddb
commit 0593ac197c
2 changed files with 5 additions and 3 deletions

View File

@@ -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(),

View File

@@ -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 = () => {