DEV: add "topic-list-heading-bottom" plugin outlet (#29377)

This commit is contained in:
Kris 2024-10-23 17:54:31 -04:00 committed by GitHub
parent 2ec5c2c514
commit d57668a703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -1,7 +1,9 @@
import Component from "@glimmer/component"; import Component from "@glimmer/component";
import { hash } from "@ember/helper";
import { on } from "@ember/modifier"; import { on } from "@ember/modifier";
import { action } from "@ember/object"; import { action } from "@ember/object";
import { service } from "@ember/service"; import { service } from "@ember/service";
import PluginOutlet from "discourse/components/plugin-outlet";
import NewListHeaderControls from "discourse/components/topic-list/new-list-header-controls"; import NewListHeaderControls from "discourse/components/topic-list/new-list-header-controls";
import TopicBulkSelectDropdown from "discourse/components/topic-list/topic-bulk-select-dropdown"; import TopicBulkSelectDropdown from "discourse/components/topic-list/topic-bulk-select-dropdown";
import concatClass from "discourse/helpers/concat-class"; import concatClass from "discourse/helpers/concat-class";
@ -135,6 +137,10 @@ export default class TopicListHeaderColumn extends Component {
{{#if this.isSorting}} {{#if this.isSorting}}
{{icon (if @ascending "chevron-up" "chevron-down")}} {{icon (if @ascending "chevron-up" "chevron-down")}}
{{/if}} {{/if}}
<PluginOutlet
@name="topic-list-heading-bottom"
@outletArgs={{hash name=@name bulkSelectEnabled=@bulkSelectEnabled}}
/>
</th> </th>
</template> </template>
} }

View File

@ -23,4 +23,5 @@
{{~#if view.isSorting}} {{~#if view.isSorting}}
{{d-icon view.sortIcon}} {{d-icon view.sortIcon}}
{{/if ~}} {{/if ~}}
{{~plugin-outlet name="topic-list-heading-bottom" outletArgs=(raw-hash name=view.name bulkSelectEnabled=bulkSelectEnabled)~}}
</th> </th>