REFACTOR: Remove dead code (property was typo'd, no longer used)
This commit is contained in:
parent
01e213c930
commit
37c6fef535
|
@ -1,6 +1,5 @@
|
|||
import { once } from "@ember/runloop";
|
||||
import Composer from "discourse/models/composer";
|
||||
import { getOwner } from "discourse-common/lib/get-owner";
|
||||
import Route from "@ember/routing/route";
|
||||
import { seenUser } from "discourse/lib/user-presence";
|
||||
|
||||
|
@ -11,10 +10,6 @@ const DiscourseRoute = Route.extend({
|
|||
seenUser();
|
||||
},
|
||||
|
||||
// Set to true to refresh a model without a transition if a query param
|
||||
// changes
|
||||
resfreshQueryWithoutTransition: false,
|
||||
|
||||
activate() {
|
||||
this._super(...arguments);
|
||||
if (this.showFooter) {
|
||||
|
@ -22,22 +17,6 @@ const DiscourseRoute = Route.extend({
|
|||
}
|
||||
},
|
||||
|
||||
refresh() {
|
||||
if (!this.refreshQueryWithoutTransition) {
|
||||
return this._super(...arguments);
|
||||
}
|
||||
|
||||
const router = getOwner(this).lookup("router:main");
|
||||
if (!router._routerMicrolib.activeTransition) {
|
||||
const controller = this.controller,
|
||||
model = controller.get("model"),
|
||||
params = this.controller.getProperties(Object.keys(this.queryParams));
|
||||
|
||||
model.set("loading", true);
|
||||
this.model(params).then(m => this.setupController(controller, m));
|
||||
}
|
||||
},
|
||||
|
||||
_refreshTitleOnce() {
|
||||
this.send("_collectTitleTokens", []);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue