FIX: Show footer on the categories page (#16538)

I removed that code in #16519 but it's still needed to display the footer on `/categories`.
This commit is contained in:
Jarek Radosz 2022-04-22 11:14:16 +02:00 committed by GitHub
parent 9ffc19ec60
commit dba7a1d8ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import TopicList from "discourse/models/topic-list";
import { ajax } from "discourse/lib/ajax"; import { ajax } from "discourse/lib/ajax";
import { defaultHomepage } from "discourse/lib/utilities"; import { defaultHomepage } from "discourse/lib/utilities";
import { hash } from "rsvp"; import { hash } from "rsvp";
import { next } from "@ember/runloop";
import showModal from "discourse/lib/show-modal"; import showModal from "discourse/lib/show-modal";
import getURL from "discourse-common/lib/get-url"; import getURL from "discourse-common/lib/get-url";
import Session from "discourse/models/session"; import Session from "discourse/models/session";
@ -152,6 +153,12 @@ const DiscoveryCategoriesRoute = DiscourseRoute.extend(OpenComposer, {
this.openComposer(this.controllerFor("discovery/categories")); this.openComposer(this.controllerFor("discovery/categories"));
} }
}, },
@action
didTransition() {
next(() => this.controllerFor("application").set("showFooter", true));
return true;
},
}); });
export default DiscoveryCategoriesRoute; export default DiscoveryCategoriesRoute;