mirror of
https://github.com/discourse/discourse-custom-header-links.git
synced 2025-03-09 14:18:22 +00:00
use @outletArgs
This commit is contained in:
parent
7c534ed55a
commit
6a328052d2
@ -1,7 +1,7 @@
|
||||
{{#if this.shouldShow}}
|
||||
<ul
|
||||
class="custom-header-links
|
||||
{{if this.attrs.scrolledTopic 'custom-header-links--hide-links'}}"
|
||||
{{if @scrolledTopic 'custom-header-links--hide-links'}}"
|
||||
>
|
||||
{{#each this.links as |link|}}
|
||||
<li
|
||||
|
@ -1,3 +1 @@
|
||||
{{! @attrs.topic does not work here }}
|
||||
{{! template-lint-disable no-args-paths }}
|
||||
<CustomHeaderLinks @scrolledTopic={{this.args.attrs.topic}} />
|
||||
<CustomHeaderLinks @scrolledTopic={{@outletArgs.attrs.topic}} />
|
Loading…
x
Reference in New Issue
Block a user