FIX: prevents double network calls and other quirks on admin emails (#7074)

This commit is contained in:
Joffrey JAFFEUX
2019-02-26 17:53:52 +01:00
committed by GitHub
parent 75aaae5d5c
commit fbedaea5ed
11 changed files with 66 additions and 73 deletions

View File

@@ -1,12 +1,8 @@
import EmailLog from "admin/models/email-log";
export default Discourse.Route.extend({
model() {
return EmailLog.findAll({ status: this.get("status") });
},
setupController(controller, model) {
controller.set("model", model);
controller.set("filter", { status: this.get("status") });
setupController(controller) {
controller.setProperties({
loading: true,
filter: { status: this.get("status") }
});
}
});