- Edit
+ var Loader = sdk.getComponent("atoms.Spinner");
+ var saving;
+ switch (this.state.phase) {
+ case this.Phases.Loading:
+ return
+ case this.Phases.Saving:
+ saving =
+ case this.Phases.Display:
+ var RoomHeader = sdk.getComponent('molecules.RoomHeader');
+ return (
+
+
+
+
Profile
+
+
+
+
+
+
+
+
+
+
+
+
+ {this.state.threepids.map(function(val) {
+ var id = "email-" + val.address;
+ return (
+
+ );
+ })}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- Edit
+
+
+
Notifications
+
+
+
+
+
+
+
+
+
+
+
-
- {this.state.threepids.map(function(val) {
- return
{val.address}
;
- })}
+
Advanced
+
+
+
+ Version {this.state.clientVersion}
+
-
- Add email
+
+
{ saving }
+
Save and close
-
-
-
-
Global Settings
-
-
-
- Change Password
-
-
- Version {this.state.clientVersion}
-
-
-
-
-
-
-
-
-
-
- );
+ );
}
}
});
diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js
index 068dff85d6..bc5c70ce08 100644
--- a/src/components/views/rooms/RoomHeader.js
+++ b/src/components/views/rooms/RoomHeader.js
@@ -73,10 +73,15 @@ module.exports = React.createClass({
var header;
if (this.props.simpleHeader) {
+ var cancel;
+ if (this.props.onCancelClick) {
+ cancel =
+ }
header =
{ this.props.simpleHeader }
+ { cancel }
}