Remove the send all explicitly checkbox from Telegram
parent
324fbc4971
commit
8829013d13
|
@ -7,7 +7,6 @@ const TelegramConfig = React.createClass({
|
||||||
'chat-id': PropTypes.string.isRequired,
|
'chat-id': PropTypes.string.isRequired,
|
||||||
'disable-notification': PropTypes.bool.isRequired,
|
'disable-notification': PropTypes.bool.isRequired,
|
||||||
'disable-web-page-preview': PropTypes.bool.isRequired,
|
'disable-web-page-preview': PropTypes.bool.isRequired,
|
||||||
global: PropTypes.bool.isRequired,
|
|
||||||
'parse-mode': PropTypes.string.isRequired,
|
'parse-mode': PropTypes.string.isRequired,
|
||||||
'state-changes-only': PropTypes.bool.isRequired,
|
'state-changes-only': PropTypes.bool.isRequired,
|
||||||
token: PropTypes.bool.isRequired,
|
token: PropTypes.bool.isRequired,
|
||||||
|
@ -24,7 +23,6 @@ const TelegramConfig = React.createClass({
|
||||||
chatID: this.chatID.value,
|
chatID: this.chatID.value,
|
||||||
disableNotification: this.disableNotification.checked,
|
disableNotification: this.disableNotification.checked,
|
||||||
disableWebPagePreview: this.disableWebPagePreview.checked,
|
disableWebPagePreview: this.disableWebPagePreview.checked,
|
||||||
global: this.global.checked,
|
|
||||||
parseMode: this.parseMode.checked,
|
parseMode: this.parseMode.checked,
|
||||||
stateChangesOnly: this.stateChangesOnly.checked,
|
stateChangesOnly: this.stateChangesOnly.checked,
|
||||||
token: this.token.value,
|
token: this.token.value,
|
||||||
|
@ -36,7 +34,7 @@ const TelegramConfig = React.createClass({
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {options} = this.props.config;
|
const {options} = this.props.config;
|
||||||
const {global, url, token} = options;
|
const {url, token} = options;
|
||||||
const chatID = options['chat-id'];
|
const chatID = options['chat-id'];
|
||||||
const disableNotification = options['chat-id'];
|
const disableNotification = options['chat-id'];
|
||||||
const disableWebPagePreview = options['disable-web-page-preview'];
|
const disableWebPagePreview = options['disable-web-page-preview'];
|
||||||
|
@ -86,13 +84,6 @@ const TelegramConfig = React.createClass({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="form-group col-xs-12">
|
|
||||||
<div className="form-control-static">
|
|
||||||
<input id="sendAllAlertsWithoutMarking" type="checkbox" defaultChecked={global} ref={(r) => this.global = r} />
|
|
||||||
<label htmlFor="sendAllAlertsWithoutMarking">Send all alerts without marking them explicitly in TICKscript</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="form-group col-xs-12">
|
<div className="form-group col-xs-12">
|
||||||
<div className="form-control-static">
|
<div className="form-control-static">
|
||||||
<input id="stateChangesOnly" type="checkbox" defaultChecked={stateChangesOnly} ref={(r) => this.stateChangesOnly = r} />
|
<input id="stateChangesOnly" type="checkbox" defaultChecked={stateChangesOnly} ref={(r) => this.stateChangesOnly = r} />
|
||||||
|
|
Loading…
Reference in New Issue