From 2bb718f3ea441f9970607826053647967c78f241 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Tue, 1 Feb 2022 15:51:42 +0100 Subject: [PATCH] fix popover header on vue ListWorkflow breadcrumb --- .../public/vuejs/HomepageWidget/js/store.js | 12 ++++++------ .../_components/EntityWorkflow/ListWorkflow.vue | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/js/store.js b/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/js/store.js index 81896e5ec..9507d5085 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/js/store.js +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/js/store.js @@ -62,27 +62,27 @@ const store = createStore({ }, mutations: { addWorks(state, works) { - console.log('addWorks', works); + //console.log('addWorks', works); state.works = works; }, addEvaluations(state, evaluations) { - console.log('addEvaluations', evaluations); + //console.log('addEvaluations', evaluations); state.evaluations = evaluations; }, addTasksWarning(state, tasks) { - console.log('addTasksWarning', tasks); + //console.log('addTasksWarning', tasks); state.tasks.warning = tasks; }, addTasksAlert(state, tasks) { - console.log('addTasksAlert', tasks); + //console.log('addTasksAlert', tasks); state.tasks.alert = tasks; }, addCourses(state, courses) { - console.log('addCourses', courses); + //console.log('addCourses', courses); state.accompanyingCourses = courses; }, addNotifications(state, notifications) { - console.log('addNotifications', notifications); + //console.log('addNotifications', notifications); state.notifications = notifications; }, setLoading(state, bool) { diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/ListWorkflow.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/ListWorkflow.vue index 25513620a..ccc1d4568 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/ListWorkflow.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/ListWorkflow.vue @@ -93,8 +93,9 @@ export default { }, getPopTitle(step) { if (step.transitionPrevious != null) { + //console.log(step.transitionPrevious.text); let freezed = step.isFreezed ? `` : ``; - return `${freezed}${step.currentStep.text}`; + return `${freezed}${step.transitionPrevious.text}`; } }, getPopContent(step) {