Updated all admin moderation links from app popover menus to open in new tab

• Updated:
- all admin moderation links from app popover menus to open in new tab
- GroupOptionsPopover group admin moderation link
- ProfileOptionsPopover account admin moderation link
- StatusOptionsPopover account and status admin moderation links
This commit is contained in:
Developer 2021-02-11 00:23:20 -05:00
parent b636f36871
commit 39a3d44bdd
3 changed files with 8 additions and 4 deletions

View File

@ -96,7 +96,8 @@ class GroupOptionsPopover extends ImmutablePureComponent {
listItems.push({})
listItems.push({
title: intl.formatMessage(messages.open_in_admin, { name: group.getIn('title') }),
href: `/admin/groups/${groupId}`
href: `/admin/groups/${groupId}`,
openInNewTab: true,
})
}

View File

@ -113,7 +113,8 @@ class ProfileOptionsPopover extends React.PureComponent {
hideArrow: true,
icon: 'circle',
title: intl.formatMessage(messages.admin_account),
href: `/admin/accounts/${account.get('id')}`
href: `/admin/accounts/${account.get('id')}`,
openInNewTab: true,
})
}

View File

@ -285,11 +285,13 @@ class StatusOptionsPopover extends ImmutablePureComponent {
menu.push({
title: intl.formatMessage(messages.admin_account, { name: status.getIn(['account', 'username']) }),
href: `/admin/accounts/${status.getIn(['account', 'id'])}`
href: `/admin/accounts/${status.getIn(['account', 'id'])}`,
openInNewTab: true,
})
menu.push({
title: intl.formatMessage(messages.admin_status),
href: `/admin/accounts/${status.getIn(['account', 'id'])}/account_statuses/${status.get('id')}`
href: `/admin/accounts/${status.getIn(['account', 'id'])}/account_statuses/${status.get('id')}`,
openInNewTab: true,
})
}