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:
softwarefactory-project-zuul[bot] 2019-03-07 15:21:45 +00:00 committed by GitHub
commit f95576764d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 = () => {