v2 Suggestions: conditionally display admin actions
This commit is contained in:
parent
92439137c1
commit
4c11a3041f
|
@ -407,6 +407,7 @@ class Header extends ImmutablePureComponent {
|
|||
});
|
||||
}
|
||||
|
||||
if (features.suggestionsV2) {
|
||||
if (account.getIn(['pleroma', 'is_suggested'])) {
|
||||
menu.push({
|
||||
text: intl.formatMessage(messages.unsuggestUser, { name: account.get('username') }),
|
||||
|
@ -420,6 +421,7 @@ class Header extends ImmutablePureComponent {
|
|||
icon: require('@tabler/icons/icons/user-check.svg'),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (account.get('id') !== me) {
|
||||
menu.push({
|
||||
|
|
Loading…
Reference in New Issue