DEV: Refactor messages code to use `user.groupsWithMessages` function (#19189)
Simplifies the template since we have one less conditional and one less level of nesting
This commit is contained in:
parent
bbcb69461f
commit
20715cd7f0
|
@ -54,8 +54,7 @@
|
|||
</li>
|
||||
{{/if}}
|
||||
|
||||
{{#each this.model.groups as |group|}}
|
||||
{{#if group.has_messages}}
|
||||
{{#each this.model.groupsWithMessages as |group|}}
|
||||
<li>
|
||||
<LinkTo @route="userPrivateMessages.group" @model={{group.name}}>
|
||||
{{d-icon "users"}}
|
||||
|
@ -84,7 +83,6 @@
|
|||
</LinkTo>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
{{#if this.pmTaggingEnabled}}
|
||||
|
|
Loading…
Reference in New Issue