Skip to content

Commit

Permalink
no need for footer stuff?
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX committed Dec 11, 2023
1 parent 395b91a commit abfc35c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<DSection
{{did-insert this.showFooter}}
@pageClass={{if
this.hideTopicList
"category-featured-images--hide-topic-list"
}}
/>
{{if
this.hideTopicList
(body-class "category-featured-images--hide-topic-list")
}}

{{#each this.filteredSetting as |fs|}}
<div class="category-featured-image-section custom-filter_{{fs.slug}}">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Component from "@glimmer/component";
import { inject as service } from "@ember/service";
import { getOwner } from "@ember/application";
import { getOwnerWithFallback } from "discourse-common/lib/get-owner";

export default class CategoryFeaturedImages extends Component {
Expand All @@ -11,10 +10,6 @@ export default class CategoryFeaturedImages extends Component {

@service router;

showFooter() {
getOwner(this).lookup("controller:application").showFooter = true;
}

get hideTopicList() {
const categoryIDs = settings.hide_topic_list
.split("|")
Expand Down

0 comments on commit abfc35c

Please sign in to comment.