No need to call it `Discourse.TopicRoute` -- that is done automatically
by the compatibility layer. cc @ZogStrIP
This commit is contained in:
parent
220f2424b5
commit
81eedf3a12
|
@ -5,7 +5,7 @@ var isTransitioning = false,
|
||||||
|
|
||||||
import ShowFooter from "discourse/mixins/show-footer";
|
import ShowFooter from "discourse/mixins/show-footer";
|
||||||
|
|
||||||
Discourse.TopicRoute = Discourse.Route.extend(ShowFooter, {
|
var TopicRoute = Discourse.Route.extend(ShowFooter, {
|
||||||
redirect: function() { return this.redirectIfLoginRequired(); },
|
redirect: function() { return this.redirectIfLoginRequired(); },
|
||||||
|
|
||||||
queryParams: {
|
queryParams: {
|
||||||
|
@ -235,5 +235,5 @@ Discourse.TopicRoute = Discourse.Route.extend(ShowFooter, {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
RSVP.EventTarget.mixin(Discourse.TopicRoute);
|
RSVP.EventTarget.mixin(TopicRoute);
|
||||||
export default Discourse.TopicRoute;
|
export default TopicRoute;
|
||||||
|
|
Loading…
Reference in New Issue