From 71651810ee7440f5515ff0236ce1cbf412dc38e9 Mon Sep 17 00:00:00 2001 From: scott Date: Mon, 26 Jan 2026 15:31:33 +0000 Subject: [PATCH 1/2] if any tasks are not returned by the api then the assignment is NOT updated and an error is shown. --- src/App.vue | 6 ++--- src/components/tops/ActionPanel.vue | 15 ++++++++++++ src/locales/en.js | 1 + src/store/modules/tasks.js | 37 ++++++++++++++++++++++------- 4 files changed, 47 insertions(+), 12 deletions(-) diff --git a/src/App.vue b/src/App.vue index b6d1044d59..1ac1f6ee4d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -124,13 +124,13 @@ export default { } const personId = eventData.person_id - const selectedTaskIds = [eventData.task_id] + const taskIds = [eventData.task_id] // for entity lists if (assign) { - this.$store.commit('ASSIGN_TASKS', { selectedTaskIds, personId }) + this.$store.commit('ASSIGN_TASKS', { taskIds, personId }) } else { - this.$store.commit('UNASSIGN_TASKS', selectedTaskIds) + this.$store.commit('UNASSIGN_TASKS', taskIds) } }, diff --git a/src/components/tops/ActionPanel.vue b/src/components/tops/ActionPanel.vue index 6879a89e3c..68e0ef93a3 100644 --- a/src/components/tops/ActionPanel.vue +++ b/src/components/tops/ActionPanel.vue @@ -391,6 +391,14 @@ {{ $t('tasks.assignation_disclaimer') }} +
+

+ {{ $t('tasks.assignation_error') }} +

+