Changed it so that tasks can be dragged and reordered, as well as having tasks breathe to leave a space where the task will go when you let go
This commit is contained in:
@@ -169,9 +169,11 @@ function App() {
|
||||
}
|
||||
};
|
||||
|
||||
const moveTask = async (taskId, toUserId) => {
|
||||
const moveTask = async (taskId, toUserId, position = null) => {
|
||||
try {
|
||||
await api.updateTask(taskId, { assignee_id: toUserId });
|
||||
const updates = { assignee_id: toUserId };
|
||||
if (position !== null) updates.position = position;
|
||||
await api.updateTask(taskId, updates);
|
||||
await api.addAudit({ actor: meId, action: 'task_moved', summary: 'Moved task to ' + (merge(toUserId)||{}).name, target: taskId });
|
||||
} catch(e) {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user