From 08dcc7722874c2e0bfc4d44d077cc27d9e357b20 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 18 Feb 2021 23:36:06 +0100 Subject: [PATCH] Fix deleting task relations See vikunja/api/commit/eb3a94567817b78a3325a937cedce237837e3785 --- src/components/tasks/partials/relatedTasks.vue | 2 +- src/services/taskRelation.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tasks/partials/relatedTasks.vue b/src/components/tasks/partials/relatedTasks.vue index 4b91ff57..d2a0c544 100644 --- a/src/components/tasks/partials/relatedTasks.vue +++ b/src/components/tasks/partials/relatedTasks.vue @@ -219,7 +219,7 @@ export default { }) }, removeTaskRelation() { - let rel = new TaskRelationModel({ + const rel = new TaskRelationModel({ relationKind: this.relationToDelete.relationKind, taskId: this.taskId, otherTaskId: this.relationToDelete.otherTaskId, diff --git a/src/services/taskRelation.js b/src/services/taskRelation.js index ae80da00..54459f0e 100644 --- a/src/services/taskRelation.js +++ b/src/services/taskRelation.js @@ -6,7 +6,7 @@ export default class TaskRelationService extends AbstractService { constructor() { super({ create: '/tasks/{taskId}/relations', - delete: '/tasks/{taskId}/relations', + delete: '/tasks/{taskId}/relations/{relationKind}/{otherTaskId}', }) }