DEV: Backport `after-header-panel` plugin outlet to widget header (#26837)
This commit is contained in:
parent
b8333d7aa2
commit
dc54884c1a
|
@ -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}} /> `
|
||||||
|
);
|
|
@ -30,5 +30,7 @@ createWidget("header-contents", {
|
||||||
{{before-header-panel-outlet attrs=attrs}}
|
{{before-header-panel-outlet attrs=attrs}}
|
||||||
|
|
||||||
<div class="panel" role="navigation">{{yield}}</div>
|
<div class="panel" role="navigation">{{yield}}</div>
|
||||||
|
|
||||||
|
{{after-header-panel-outlet attrs=attrs}}
|
||||||
`,
|
`,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue