DEV: Add plugin outlet to the group info template (#28624)

* DEV: Add plugin outlet to the group info template
This commit is contained in:
Jean
2024-08-29 14:02:33 -04:00
committed by GitHub
parent bdd00a84b0
commit 22c7fde850

View File

@@ -1,11 +1,19 @@
import { hash } from "@ember/helper";
import { or } from "truth-helpers";
import PluginOutlet from "discourse/components/plugin-outlet";
const GroupsInfo = <template>
<span class="group-info-details">
<span class="groups-info-name">
{{or @group.full_name @group.displayName}}
<PluginOutlet
@name="group-info-details"
@outletArgs={{hash group=@group}}
@defaultGlimmer={{true}}
>
<span class="group-info-details">
<span class="groups-info-name">
{{or @group.full_name @group.displayName}}
</span>
</span>
</span>
</PluginOutlet>
</template>;
export default GroupsInfo;