diff --git a/app/javascript/gabsocial/components/popover/group_options_popover.js b/app/javascript/gabsocial/components/popover/group_options_popover.js index a77f94aa..579c13d7 100644 --- a/app/javascript/gabsocial/components/popover/group_options_popover.js +++ b/app/javascript/gabsocial/components/popover/group_options_popover.js @@ -4,6 +4,7 @@ import { connect } from 'react-redux' import ImmutablePureComponent from 'react-immutable-pure-component' import ImmutablePropTypes from 'react-immutable-proptypes' import { defineMessages, injectIntl } from 'react-intl' +import { isStaff } from '../../initial_state' import { addShortcut, removeShortcut, @@ -91,6 +92,14 @@ class GroupOptionsPopover extends ImmutablePureComponent { onClick: this.handleOnToggleShortcut, }) + if (isStaff) { + listItems.push({}) + listItems.push({ + title: intl.formatMessage(messages.open_in_admin, { name: group.getIn('title') }), + href: `/admin/groups/${groupId}` + }) + } + return ( {