s/devices/notification targets/
This commit is contained in:
parent
efe1c767f0
commit
af9838408b
|
@ -699,7 +699,7 @@ module.exports = React.createClass({
|
||||||
{masterPushRuleDiv}
|
{masterPushRuleDiv}
|
||||||
|
|
||||||
<div className="mx_UserSettings_notifTable">
|
<div className="mx_UserSettings_notifTable">
|
||||||
All notifications are currently disabled for all devices.
|
All notifications are currently disabled for all targets.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -742,13 +742,11 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
var devicesSection;
|
var devicesSection;
|
||||||
if (this.state.pushers === undefined) {
|
if (this.state.pushers === undefined) {
|
||||||
devicesSection = <div className="error">Unable to fetch device list</div>
|
devicesSection = <div className="error">Unable to fetch notification target list</div>
|
||||||
} else if (this.state.pushers.length == 0) {
|
} else if (this.state.pushers.length == 0) {
|
||||||
devicesSection = <div className="mx_UserSettings_devicesTable_nodevices">
|
devicesSection = null;
|
||||||
No devices are receiving push notifications
|
|
||||||
</div>
|
|
||||||
} else {
|
} else {
|
||||||
// It would be great to be able to delete pushers from here too,
|
// TODO: It would be great to be able to delete pushers from here too,
|
||||||
// and this wouldn't be hard to add.
|
// and this wouldn't be hard to add.
|
||||||
var rows = [];
|
var rows = [];
|
||||||
for (var i = 0; i < this.state.pushers.length; ++i) {
|
for (var i = 0; i < this.state.pushers.length; ++i) {
|
||||||
|
@ -758,17 +756,17 @@ module.exports = React.createClass({
|
||||||
</tr>);
|
</tr>);
|
||||||
}
|
}
|
||||||
devicesSection = (<table className="mx_UserSettings_devicesTable">
|
devicesSection = (<table className="mx_UserSettings_devicesTable">
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Application</th>
|
|
||||||
<th>Device</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{rows}
|
{rows}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>);
|
</table>);
|
||||||
}
|
}
|
||||||
|
if (devicesSection) {
|
||||||
|
devicesSection = (<div>
|
||||||
|
<h3>Notification targets</h3>
|
||||||
|
{ devicesSection }
|
||||||
|
</div>);
|
||||||
|
}
|
||||||
|
|
||||||
var advancedSettings;
|
var advancedSettings;
|
||||||
if (externalRules.length) {
|
if (externalRules.length) {
|
||||||
|
@ -828,8 +826,6 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
{ emailNotificationsRow }
|
{ emailNotificationsRow }
|
||||||
|
|
||||||
<h3>General use</h3>
|
|
||||||
|
|
||||||
<div className="mx_UserNotifSettings_pushRulesTableWrapper">
|
<div className="mx_UserNotifSettings_pushRulesTableWrapper">
|
||||||
<table className="mx_UserNotifSettings_pushRulesTable">
|
<table className="mx_UserNotifSettings_pushRulesTable">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -850,7 +846,6 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
{ advancedSettings }
|
{ advancedSettings }
|
||||||
|
|
||||||
<h3>Devices</h3>
|
|
||||||
{ devicesSection }
|
{ devicesSection }
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue