mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Replace strings action with correspoding type
This commit is contained in:
parent
2c8b5b49ed
commit
1c913b85e2
1 changed files with 5 additions and 2 deletions
|
@ -25,7 +25,10 @@ import PropTypes from 'prop-types';
|
|||
import { showGroupInviteDialog } from '../../../GroupAddressPicker';
|
||||
import AccessibleButton from '../elements/AccessibleButton';
|
||||
import {RIGHT_PANEL_PHASES} from "../../../stores/RightPanelStorePhases";
|
||||
import TintableSvg from '../elements/TintableSvg';
|
||||
import {RightPanelPhases} from "../../../stores/RightPanelStorePhases";
|
||||
import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
|
||||
import {Action} from "../../../dispatcher/actions";
|
||||
|
||||
const INITIAL_LOAD_NUM_MEMBERS = 30;
|
||||
|
||||
|
@ -164,8 +167,8 @@ export default createReactClass({
|
|||
onInviteToGroupButtonClick() {
|
||||
showGroupInviteDialog(this.props.groupId).then(() => {
|
||||
dis.dispatch({
|
||||
action: 'set_right_panel_phase',
|
||||
phase: RIGHT_PANEL_PHASES.GroupMemberList,
|
||||
action: Action.SetRightPanelPhase,
|
||||
phase: RightPanelPhases.GroupMemberList,
|
||||
groupId: this.props.groupId,
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue