mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
FIX: Do not show empty list in the topic admin menu (#26825)
This commit is contained in:
parent
f4acb43ee7
commit
ddf7bbfa97
@ -294,6 +294,7 @@ export default class TopicAdminMenu extends Component {
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
{{#if (or this.currentUser.staff this.extraButtons.length)}}
|
||||||
<ul class="topic-admin-menu-undefined">
|
<ul class="topic-admin-menu-undefined">
|
||||||
{{#if this.currentUser.staff}}
|
{{#if this.currentUser.staff}}
|
||||||
<li class="topic-admin-moderation-history">
|
<li class="topic-admin-moderation-history">
|
||||||
@ -316,11 +317,15 @@ export default class TopicAdminMenu extends Component {
|
|||||||
"btn-transparent"
|
"btn-transparent"
|
||||||
button.className
|
button.className
|
||||||
}}
|
}}
|
||||||
@action={{fn this.onExtraButtonAction button.action}}
|
@action={{fn
|
||||||
|
this.onExtraButtonAction
|
||||||
|
button.action
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</:content>
|
</:content>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user