Explorar o código

Archive subtask instead of permanent delete

Nicu Tofan %!s(int64=7) %!d(string=hai) anos
pai
achega
cd36194477
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/components/cards/subtasks.js

+ 1 - 1
client/components/cards/subtasks.js

@@ -52,7 +52,7 @@ BlazeComponent.extendComponent({
   deleteSubtask() {
     const subtask = this.currentData().subtask;
     if (subtask && subtask._id) {
-      Cards.remove(subtask._id);
+      subtask.archive();
       this.toggleDeleteDialog.set(false);
     }
   },