From 3f83c323bef837acd52504b0ab661fd213f5c605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 3 Feb 2022 13:16:13 +0100 Subject: [PATCH] fix creating workflow from document in accompanying course --- .../AccompanyingCourseDocument/_workflow.html.twig | 12 ++++++------ .../_components/EntityWorkflow/PickWorkflow.vue | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/_workflow.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/_workflow.html.twig index 0a1942f6d..2d7e99f75 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/_workflow.html.twig +++ b/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/_workflow.html.twig @@ -8,14 +8,13 @@

{{ document.title }}

- {{ document.object.type }} - + {% if document.description is not empty %}
{{ document.description }}
{% endif %} - +
@@ -43,14 +42,15 @@ 'changeClass' string 'noText' boolean #} - {# vue component #} + {# vue component + > #} + {{ 'Edit'|trans }} {% else %} {{ 'Update document'|trans }} @@ -58,4 +58,4 @@ {% endif %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/PickWorkflow.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/PickWorkflow.vue index e74cd7ef2..826917fbb 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/PickWorkflow.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/PickWorkflow.vue @@ -47,7 +47,8 @@ export default { console.log('goToGenerateWorkflow', event, workflowName); if (!this.$props.preventDefaultMoveToGenerate) { - event.target.click(); + console.log('to go generate'); + window.location.assign(this.makeLink(workflowName)); } this.$emit('goToGenerateWorkflow', {event, workflowName, link: this.makeLink(workflowName)});