DEV: Update to support core outletArgs change

See https://github.com/discourse/discourse/pull/24796
This commit is contained in:
David Taylor 2023-12-08 17:21:02 +00:00
parent 06cf2c92ba
commit 9ca5ade438
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434

View File

@ -1,7 +1,14 @@
{{#if this.shouldShow}}
{{!
@outletArgs.attrs.topic is the legacy version. Can be removed once core v3.2.0.beta4 is released
and this Theme's compatibility file is updated
}}
<ul
class="custom-header-links
{{if @outletArgs.attrs.topic 'custom-header-links--hide-links'}}"
{{if
(or @outletArgs.topic @outletArgs.attrs.topic)
'custom-header-links--hide-links'
}}"
>
{{#each this.links as |link|}}
<li