mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: migrates groups-info to gjs (#27832)
Co-authored-by: Jarek Radosz <jarek@cvx.dev>
This commit is contained in:
parent
52ea5c7eb0
commit
89bcf955c0
@ -0,0 +1,11 @@
|
|||||||
|
import { or } from "truth-helpers";
|
||||||
|
|
||||||
|
const GroupsInfo = <template>
|
||||||
|
<span class="group-info-details">
|
||||||
|
<span class="groups-info-name">
|
||||||
|
{{or @group.full_name @group.displayName}}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</template>;
|
||||||
|
|
||||||
|
export default GroupsInfo;
|
@ -1,5 +0,0 @@
|
|||||||
{{#if this.showFullName}}
|
|
||||||
<span class="groups-info-name">{{this.group.full_name}}</span>
|
|
||||||
{{else}}
|
|
||||||
<span class="groups-info-name">{{this.group.displayName}}</span>
|
|
||||||
{{/if}}
|
|
@ -1,12 +0,0 @@
|
|||||||
import Component from "@ember/component";
|
|
||||||
import discourseComputed from "discourse-common/utils/decorators";
|
|
||||||
|
|
||||||
export default Component.extend({
|
|
||||||
tagName: "span",
|
|
||||||
classNames: ["group-info-details"],
|
|
||||||
|
|
||||||
@discourseComputed("group.full_name")
|
|
||||||
showFullName(fullName) {
|
|
||||||
return fullName && fullName.length;
|
|
||||||
},
|
|
||||||
});
|
|
Loading…
Reference in New Issue
Block a user