All delete buttons now soft-delete with toast prompt to undo
This commit is contained in:
@@ -38,7 +38,8 @@ Template.spellDialog.events({
|
||||
Spells.update(instance.data.spellId, {$set: {color: event.color}});
|
||||
},
|
||||
"tap #deleteButton": function(event, instance){
|
||||
Spells.remove(instance.data.spellId);
|
||||
Spells.softRemove(instance.data.spellId);
|
||||
GlobalUI.deletedToast(instance.data.spellId, "Spells", "Spell");
|
||||
GlobalUI.closeDetail()
|
||||
},
|
||||
"change #spellNameInput, input #spellNameInput": function(event){
|
||||
|
||||
Reference in New Issue
Block a user