DEV: Backport `after-header-panel` plugin outlet to widget header (#26837)

This commit is contained in:
Isaac Janzen 2024-05-01 13:08:11 -05:00 committed by GitHub
parent b8333d7aa2
commit dc54884c1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,8 @@
import { hbs } from "ember-cli-htmlbars";
import { registerWidgetShim } from "discourse/widgets/render-glimmer";
registerWidgetShim(
"after-header-panel-outlet",
"div.after-header-panel-outlet",
hbs`<PluginOutlet @name="after-header-panel" @outletArgs={{hash topic=@data.topic}} /> `
);

View File

@ -30,5 +30,7 @@ createWidget("header-contents", {
{{before-header-panel-outlet attrs=attrs}}
<div class="panel" role="navigation">{{yield}}</div>
{{after-header-panel-outlet attrs=attrs}}
`,
});