diff --git a/app/javascript/gabsocial/components/panel/group_info_panel.js b/app/javascript/gabsocial/components/panel/group_info_panel.js index d34e1a76..74f2145c 100644 --- a/app/javascript/gabsocial/components/panel/group_info_panel.js +++ b/app/javascript/gabsocial/components/panel/group_info_panel.js @@ -4,6 +4,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component' import ImmutablePropTypes from 'react-immutable-proptypes' import { openModal } from '../../actions/modal' import { MODAL_GROUP_MEMBERS } from '../../constants' +import { me } from '../../initial_state' import { shortNumberFormat } from '../../utils/numbers' import PanelLayout from './panel_layout' import Button from '../button' @@ -59,29 +60,34 @@ class GroupInfoPanel extends ImmutablePureComponent { -
-
- - - {intl.formatMessage(messages.members)} - -
- -
+ { + !!me && + +
+
+ + + {intl.formatMessage(messages.members)} + +
+ +
- + +
+ }