From e1179aace0dc96dc090dc7008616e6adddd47523 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Fri, 14 Mar 2025 16:23:25 -0400 Subject: [PATCH] [nit] Add title to show full text in workflow template dialog (#3058) --- .../templates/TemplateWorkflowCard.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/templates/TemplateWorkflowCard.vue b/src/components/templates/TemplateWorkflowCard.vue index aa8986506..f0be89d71 100644 --- a/src/components/templates/TemplateWorkflowCard.vue +++ b/src/components/templates/TemplateWorkflowCard.vue @@ -54,11 +54,15 @@

{{ title }}

-

- {{ template.description.replace(/[-_]/g, ' ') }} +

+ {{ description }}

const title = computed(() => { return sourceModule === 'default' - ? t( - `templateWorkflows.template.${normalizeI18nKey(categoryTitle)}.${normalizeI18nKey(template.name)}` + ? st( + `templateWorkflows.template.${normalizeI18nKey(categoryTitle)}.${normalizeI18nKey(template.name)}`, + template.name ) : template.name ?? `${sourceModule} Template` }) +const description = computed(() => template.description.replace(/[-_]/g, ' ')) + defineEmits<{ loadWorkflow: [name: string] }>()