From 81ef6b2c5aba83148df9cd237e7011302654914c Mon Sep 17 00:00:00 2001 From: Georg Bremer Date: Wed, 13 Oct 2021 09:31:31 +0200 Subject: [PATCH 01/11] Allow moving integration tasks between teams If a task with the same hash exists in the destination, it is deleted first. This currently only touches `changeTaskTeam`, but moving teams is also possible via `updateTask`. --- .../OutcomeCardFooter/TaskFooter.tsx | 11 +++++--- .../graphql/mutations/changeTaskTeam.ts | 27 ++++++++++++++++++- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooter.tsx b/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooter.tsx index 378a096cb86..43b1a75ec1d 100644 --- a/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooter.tsx +++ b/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooter.tsx @@ -84,17 +84,22 @@ const TaskFooter = (props: Props) => { const showTeam = area === USER_DASH const {content, id: taskId, error, integration, tags, userId} = task const isArchived = isTaskArchived(tags) - const canAssign = !integration && !isArchived + const canAssignUser = !integration && !isArchived + const canAssignTeam = !isArchived return (