Started implementing soft delete attacks, added delete toast
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<template name="undoToast">
|
||||
<div id="undoButton" style="color: #eeff41;">Undo</div>
|
||||
</template>
|
||||
@@ -0,0 +1,7 @@
|
||||
Template.undoToast.events({
|
||||
'tap #undoButton': function(event, instance){
|
||||
var collection = window[this.collection];
|
||||
if(!collection) return;
|
||||
collection.restore(this.id);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user