Updated feedback form to Polymer 1

This commit is contained in:
Stefan Zermatten
2017-01-13 13:21:42 +02:00
parent c416adc85b
commit a67b13f659
9 changed files with 79 additions and 44 deletions

View File

@@ -38,10 +38,17 @@ Template.layout.events({
closeDrawer(instance);
},
"tap #feedback": function(event, instance) {
GlobalUI.showDialog({
heading: "Feedback",
pushDialogStack({
template: "feedback",
fullOnMobile: true,
element: event.currentTarget,
callback: function(report){
if (!report) return;
Meteor.call("insertReport", report, function(e, result){
GlobalUI.toast({
text: e && e.details || "Feedback submitted"
});
});
}
});
closeDrawer(instance);
},