Skip to content

Commit

Permalink
REFACTOR: Remove dead code (property was typo'd, no longer used)
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed Aug 14, 2020
1 parent 01e213c commit 37c6fef
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions app/assets/javascripts/discourse/app/routes/discourse.js
@@ -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";

Expand All @@ -11,33 +10,13 @@ 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) {
this.controllerFor("application").set("showFooter", true);
}
},

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", []);
},
Expand Down

0 comments on commit 37c6fef

Please sign in to comment.