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}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
{{before-header-panel-outlet attrs=attrs}}
|
||||||
|
|
||||||
<div class="panel clearfix" role="navigation">{{yield}}</div>
|
<div class="panel clearfix" role="navigation">{{yield}}</div>
|
||||||
`,
|
`,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue