Log when and why an email was not sent in email_logs

This commit is contained in:
Neil Lalonde
2014-02-14 13:06:21 -05:00
parent 42fb9d4fb1
commit 35dae76bbd
15 changed files with 164 additions and 37 deletions

View File

@ -20,7 +20,7 @@ Discourse.EmailLog.reopenClass({
findAll: function(filter) {
var result = Em.A();
Discourse.ajax("/admin/email/logs.json", {
Discourse.ajax("/admin/email/" + (filter === 'skipped' ? 'skipped' : 'logs') + ".json", {
data: { filter: filter }
}).then(function(logs) {
_.each(logs,function(log) {