Added help text to notification settings to say which browsers support them
Этот коммит содержится в:
@@ -163,10 +163,22 @@ export default class ChannelNotifications extends React.Component {
|
|||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
||||||
let curChannel = ChannelStore.get(this.state.channelId);
|
let curChannel = ChannelStore.get(this.state.channelId);
|
||||||
let extraInfo = (<span>These settings will override the global notification settings</span>);
|
let extraInfo = (
|
||||||
|
<span>
|
||||||
|
These settings will override the global notification settings.
|
||||||
|
<br/>
|
||||||
|
Desktop notifications are available on Firefox, Safari, and Chrome.
|
||||||
|
</span>
|
||||||
|
);
|
||||||
|
|
||||||
if (curChannel && curChannel.display_name) {
|
if (curChannel && curChannel.display_name) {
|
||||||
extraInfo = (<span>These settings will override the global notification settings for the <b>{curChannel.display_name}</b> channel</span>);
|
extraInfo = (
|
||||||
|
<span>
|
||||||
|
These settings will override the global notification settings for the <b>{curChannel.display_name}</b> channel.
|
||||||
|
<br/>
|
||||||
|
Desktop notifications are available on Firefox, Safari, and Chrome.
|
||||||
|
</span>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -265,9 +265,12 @@ export default class NotificationsTab extends React.Component {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
||||||
|
const extraInfo = <span>{'Desktop notifications are available on Firefox, Safari, and Chrome.'}</span>;
|
||||||
|
|
||||||
desktopSection = (
|
desktopSection = (
|
||||||
<SettingItemMax
|
<SettingItemMax
|
||||||
title='Send desktop notifications'
|
title='Send desktop notifications'
|
||||||
|
extraInfo={extraInfo}
|
||||||
inputs={inputs}
|
inputs={inputs}
|
||||||
submit={this.handleSubmit}
|
submit={this.handleSubmit}
|
||||||
server_error={serverError}
|
server_error={serverError}
|
||||||
@@ -343,9 +346,12 @@ export default class NotificationsTab extends React.Component {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
||||||
|
const extraInfo = <span>{'Desktop notification sounds are available on Firefox, Safari, Chrome, Internet Explorer, and Edge.'}</span>;
|
||||||
|
|
||||||
soundSection = (
|
soundSection = (
|
||||||
<SettingItemMax
|
<SettingItemMax
|
||||||
title='Desktop notification sounds'
|
title='Desktop notification sounds'
|
||||||
|
extraInfo={extraInfo}
|
||||||
inputs={inputs}
|
inputs={inputs}
|
||||||
submit={this.handleSubmit}
|
submit={this.handleSubmit}
|
||||||
server_error={serverError}
|
server_error={serverError}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user