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:
parent
b636f36871
commit
39a3d44bdd
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue