mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
DEV: add before-header-panel plugin outlet (#22285)
This commit is contained in:
parent
c3fa85c450
commit
9cc2b5cc20
@ -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}} /> `
|
||||
);
|
@ -25,6 +25,8 @@ createWidget("header-contents", {
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{before-header-panel-outlet attrs=attrs}}
|
||||
|
||||
<div class="panel clearfix" role="navigation">{{yield}}</div>
|
||||
`,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user