FIX: incorrect divider in topic admin menu (#26934)

Adds a divider only if we are staff or have extra buttons.
This commit is contained in:
Joffrey JAFFEUX 2024-05-08 11:49:04 +02:00 committed by GitHub
parent 0f4520867b
commit 7896d00a7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -281,11 +281,11 @@ export default class TopicAdminMenu extends Component {
@icon="hourglass-start"
/>
</dropdown.item>
<dropdown.divider />
{{/if}}
{{#if (or this.currentUser.staff this.extraButtons.length)}}
<dropdown.divider />
{{#if this.currentUser.staff}}
<dropdown.item class="topic-admin-moderation-history">
<DButton