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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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>
<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>
</PluginOutlet>
</template>;
export default GroupsInfo;