mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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 { once } from "@ember/runloop";
|
||||||
import Composer from "discourse/models/composer";
|
import Composer from "discourse/models/composer";
|
||||||
import { getOwner } from "discourse-common/lib/get-owner";
|
|
||||||
import Route from "@ember/routing/route";
|
import Route from "@ember/routing/route";
|
||||||
import { seenUser } from "discourse/lib/user-presence";
|
import { seenUser } from "discourse/lib/user-presence";
|
||||||
|
|
||||||
@ -11,10 +10,6 @@ const DiscourseRoute = Route.extend({
|
|||||||
seenUser();
|
seenUser();
|
||||||
},
|
},
|
||||||
|
|
||||||
// Set to true to refresh a model without a transition if a query param
|
|
||||||
// changes
|
|
||||||
resfreshQueryWithoutTransition: false,
|
|
||||||
|
|
||||||
activate() {
|
activate() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
if (this.showFooter) {
|
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() {
|
_refreshTitleOnce() {
|
||||||
this.send("_collectTitleTokens", []);
|
this.send("_collectTitleTokens", []);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user