DEV: add before-header-panel plugin outlet (#22285)

This commit is contained in:
Kris 2023-06-28 17:26:30 -04:00 committed by GitHub
parent c3fa85c450
commit 9cc2b5cc20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(
"before-header-panel-outlet",
"div.before-header-panel-outlet",
hbs`<PluginOutlet @name="before-header-panel" @outletArgs={{hash attrs=@data}} /> `
);

View File

@ -25,6 +25,8 @@ createWidget("header-contents", {
{{/if}}
{{/if}}
{{before-header-panel-outlet attrs=attrs}}
<div class="panel clearfix" role="navigation">{{yield}}</div>
`,
});