From 39a3d44bdd63476c6ed31e5628e6fa2ac47aa712 Mon Sep 17 00:00:00 2001 From: Developer <> Date: Thu, 11 Feb 2021 00:23:20 -0500 Subject: [PATCH] Updated all admin moderation links from app popover menus to open in new tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • 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 --- .../gabsocial/components/popover/group_options_popover.js | 3 ++- .../gabsocial/components/popover/profile_options_popover.js | 3 ++- .../gabsocial/components/popover/status_options_popover.js | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/javascript/gabsocial/components/popover/group_options_popover.js b/app/javascript/gabsocial/components/popover/group_options_popover.js index 579c13d7..94ca89b3 100644 --- a/app/javascript/gabsocial/components/popover/group_options_popover.js +++ b/app/javascript/gabsocial/components/popover/group_options_popover.js @@ -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, }) } diff --git a/app/javascript/gabsocial/components/popover/profile_options_popover.js b/app/javascript/gabsocial/components/popover/profile_options_popover.js index 552afc99..58905d56 100644 --- a/app/javascript/gabsocial/components/popover/profile_options_popover.js +++ b/app/javascript/gabsocial/components/popover/profile_options_popover.js @@ -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, }) } diff --git a/app/javascript/gabsocial/components/popover/status_options_popover.js b/app/javascript/gabsocial/components/popover/status_options_popover.js index 391b986a..3ffb7e23 100644 --- a/app/javascript/gabsocial/components/popover/status_options_popover.js +++ b/app/javascript/gabsocial/components/popover/status_options_popover.js @@ -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, }) }