2015-11-20 20:27:06 -05:00
|
|
|
import EmailLog from 'admin/models/email-log';
|
|
|
|
|
|
|
|
export default Discourse.Route.extend({
|
2014-02-14 18:50:08 -05:00
|
|
|
|
2016-01-18 18:57:55 -05:00
|
|
|
model() {
|
2015-11-20 20:27:06 -05:00
|
|
|
return EmailLog.findAll({ status: this.get("status") });
|
2014-02-14 18:50:08 -05:00
|
|
|
},
|
|
|
|
|
2016-01-18 18:57:55 -05:00
|
|
|
setupController(controller, model) {
|
2014-02-18 12:21:35 -05:00
|
|
|
controller.set("model", model);
|
2014-02-14 18:50:08 -05:00
|
|
|
controller.set("filter", { status: this.get("status") });
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|