Replaced restore with restoreNode for undo button
This commit is contained in:
@@ -5,6 +5,6 @@ Template.undoToast.events({
|
||||
console.warn("Collection with name ", this.collection, " could not be found");
|
||||
return;
|
||||
}
|
||||
collection.restore(this.id);
|
||||
collection.restoreNode(this.id);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -73,6 +73,14 @@ makeChild = function(collection, inheritedKeys){
|
||||
}
|
||||
});
|
||||
|
||||
collection.softRemoveNode = collection.softRemoveNode || function(id){
|
||||
collection.softRemove(id);
|
||||
};
|
||||
|
||||
collection.restoreNode = collection.restoreNode || function(id){
|
||||
collection.restore(id);
|
||||
};
|
||||
|
||||
collection.attachSchema(childSchema);
|
||||
|
||||
childCollections.push(collection);
|
||||
|
||||
Reference in New Issue
Block a user