mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592)
This commit is contained in:
@@ -42,7 +42,7 @@ export default Ember.Route.extend({
|
||||
willTransition(transition) {
|
||||
if (
|
||||
this.get("controller.model.changed") &&
|
||||
this.get("shouldAlertUnsavedChanges") &&
|
||||
this.shouldAlertUnsavedChanges &&
|
||||
transition.intent.name !== this.routeName
|
||||
) {
|
||||
transition.abort();
|
||||
|
||||
@@ -2,11 +2,11 @@ import IncomingEmail from "admin/models/incoming-email";
|
||||
|
||||
export default Discourse.Route.extend({
|
||||
model() {
|
||||
return IncomingEmail.findAll({ status: this.get("status") });
|
||||
return IncomingEmail.findAll({ status: this.status });
|
||||
},
|
||||
|
||||
setupController(controller, model) {
|
||||
controller.set("model", model);
|
||||
controller.set("filter", { status: this.get("status") });
|
||||
controller.set("filter", { status: this.status });
|
||||
}
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@ export default Discourse.Route.extend({
|
||||
setupController(controller) {
|
||||
controller.setProperties({
|
||||
loading: true,
|
||||
filter: { status: this.get("status") }
|
||||
filter: { status: this.status }
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user