diff --git a/src/components/Todo.vue b/src/components/Todo.vue index d980155..2ae6138 100644 --- a/src/components/Todo.vue +++ b/src/components/Todo.vue @@ -37,7 +37,7 @@
-
+
 
@@ -51,7 +51,7 @@
@@ -95,6 +95,13 @@ export default { methods: { + /** + * Return element ID for a task container. + */ + taskElId(task) { + return `task-${task.id}`; + }, + /** * Save a task to the database. * @param task the task to save; this is an object as received from the broker. @@ -157,7 +164,7 @@ export default { */ deleteTask(task) { if (task.id !== NEW_TASK_ID) { - /* Task must be also deleted from the server */ + /* Delete task from basebox */ gqlRequest(`mutation { deleteTask(id: "${task.id}") { id