diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 30d67202e7..5aa6b1d2a9 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -212,7 +212,20 @@ export default React.createClass({ }, _onSettingsClick: function() { - this.setState({editing: true}); + this.setState({ + editing: true, + profileForm: Object.assign({}, this.state.summary.profile), + }); + }, + + _onCancelClick: function() { + this.setState({ + editing: false, + profileForm: null, + }); + }, + + _onSaveClick: function() { }, _getFeaturedRoomsNode() { @@ -295,61 +308,162 @@ export default React.createClass({ const GroupAvatar = sdk.getComponent("avatars.GroupAvatar"); const Loader = sdk.getComponent("elements.Spinner"); const TintableSvg = sdk.getComponent("elements.TintableSvg"); + const ChangeAvatar = sdk.getComponent("settings.ChangeAvatar"); if (this.state.summary === null && this.state.error === null) { return ; - } else if (this.state.editing) { - return
; + } else if (false && this.state.editing) { + const summary = this.state.summary; + const avatarEdit = ( +
+
+ +
+
+ + +
+
+ ); + + return
+ {avatarEdit} + + + + {_t('Save')} + + + {_t("Cancel")}/ + +