Browse Source

FIX | Reassign tasks result message depends on tasks count

reassigned-tasks-msg
Oksana Stepanenko 2 years ago
parent
commit
0ee8050325
  1. 5
      src/modules/tasks/hooks/use-task-actions.hook.ts

5
src/modules/tasks/hooks/use-task-actions.hook.ts

@ -70,8 +70,11 @@ export const useTaskActions = (reload = (id: number) => {}) => { @@ -70,8 +70,11 @@ export const useTaskActions = (reload = (id: number) => {}) => {
if (!result) return
const firstTaskKey = Object.keys(result)[0]
const firstExecutorKey = Object.keys(result[firstTaskKey])[0]
const title = Object.keys(result).length > 1 ? 'Задачі перепоставлені!' : 'Задача перепоставлена!'
appEvents.emit('openInfoModal', {
title: 'Задача перепоставлена!',
title,
message: '',
})

Loading…
Cancel
Save