Improved new user experience and fixed errors on character delete

This commit is contained in:
Stefan Zermatten
2017-09-28 13:03:54 +02:00
parent c4e77c7eae
commit 4c31ab601c
11 changed files with 25 additions and 15 deletions

View File

@@ -199,6 +199,12 @@ Template.characterSheet.events({
data: this,
template: "deleteCharacterConfirmation",
element: event.currentTarget.parentElement.parentElement,
callback: (result) => {
if (result === true){
Router.go("/characterList");
Tracker.afterFlush(() => Characters.remove(this._id));
}
},
});
},
"click #shareCharacter": function(event, instance){