Fix menu in status action bar
This commit is contained in:
parent
c6c7bdcb18
commit
4c102d815a
1 changed files with 10 additions and 7 deletions
|
@ -265,16 +265,19 @@ class StatusActionBar extends ImmutablePureComponent {
|
||||||
menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
|
menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menu.push(null);
|
||||||
|
|
||||||
|
if (!show_bookmark_button || writtenByMe && publicStatus && !expired) {
|
||||||
if (!show_bookmark_button) {
|
if (!show_bookmark_button) {
|
||||||
menu.push({ text: intl.formatMessage(status.get('bookmarked') ? messages.removeBookmark : messages.bookmark), action: this.handleBookmarkClick });
|
menu.push({ text: intl.formatMessage(status.get('bookmarked') ? messages.removeBookmark : messages.bookmark), action: this.handleBookmarkClick });
|
||||||
}
|
}
|
||||||
menu.push(null);
|
|
||||||
|
|
||||||
if (writtenByMe && publicStatus && !expired) {
|
if (writtenByMe && publicStatus && !expired) {
|
||||||
menu.push({ text: intl.formatMessage(status.get('pinned') ? messages.unpin : messages.pin), action: this.handlePinClick });
|
menu.push({ text: intl.formatMessage(status.get('pinned') ? messages.unpin : messages.pin), action: this.handlePinClick });
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
|
}
|
||||||
|
|
||||||
if (writtenByMe && limitedByMe) {
|
if (writtenByMe && limitedByMe) {
|
||||||
menu.push({ text: intl.formatMessage(messages.showMemberList), action: this.handleMemberListClick });
|
menu.push({ text: intl.formatMessage(messages.showMemberList), action: this.handleMemberListClick });
|
||||||
|
|
Loading…
Reference in a new issue