simplified kanban:
Before this change tasks were resorted on drop. By introduction of server-sent events, this is no longer required, as resorting also happens triggered by the server side.
This commit is contained in:
@@ -97,12 +97,6 @@
|
|||||||
body : JSON.stringify(patch)
|
body : JSON.stringify(patch)
|
||||||
});
|
});
|
||||||
if (resp.ok){
|
if (resp.ok){
|
||||||
delete tasks[task.assignee][task.status][task.id]
|
|
||||||
if (!tasks[user_id]) tasks[user_id] = {}
|
|
||||||
if (!tasks[user_id][state]) tasks[user_id][state] = {}
|
|
||||||
tasks[user_id][state][task.id] = task;
|
|
||||||
task.assignee = user_id;
|
|
||||||
task.status = state;
|
|
||||||
yikes();
|
yikes();
|
||||||
} else {
|
} else {
|
||||||
error(resp);
|
error(resp);
|
||||||
@@ -139,8 +133,6 @@
|
|||||||
return [10,20,40,60,100].includes(state);
|
return [10,20,40,60,100].includes(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async function load(){
|
async function load(){
|
||||||
try {
|
try {
|
||||||
eventSource = eventStream(handleUpdateEvent);
|
eventSource = eventStream(handleUpdateEvent);
|
||||||
|
|||||||
Reference in New Issue
Block a user