mirror of https://github.com/vector-im/riot-web
Merge pull request #153 from matrix-org/dbkr/no_notif_settings_guests
Don't show the Notifications widget for guests…pull/21833/head
commit
124155df00
|
@ -315,6 +315,16 @@ module.exports = React.createClass({
|
||||||
onFinished={this.onPasswordChanged} />
|
onFinished={this.onPasswordChanged} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
var notification_area;
|
||||||
|
if (!MatrixClientPeg.get().isGuest()) {
|
||||||
|
notification_area = (<div>
|
||||||
|
<h2>Notifications</h2>
|
||||||
|
|
||||||
|
<div className="mx_UserSettings_section">
|
||||||
|
<Notifications/>
|
||||||
|
</div>
|
||||||
|
</div>);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_UserSettings">
|
<div className="mx_UserSettings">
|
||||||
|
@ -364,11 +374,7 @@ module.exports = React.createClass({
|
||||||
{accountJsx}
|
{accountJsx}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Notifications</h2>
|
{notification_area}
|
||||||
|
|
||||||
<div className="mx_UserSettings_section">
|
|
||||||
<Notifications/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2>Advanced</h2>
|
<h2>Advanced</h2>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue