Remove the send all explicitly checkbox from Telegram

pull/760/head
Andrew Watkins 2017-01-11 15:46:35 -08:00
parent 9d25cc3631
commit 4ba7c274a6
1 changed files with 1 additions and 10 deletions

View File

@ -7,7 +7,6 @@ const TelegramConfig = React.createClass({
'chat-id': PropTypes.string.isRequired,
'disable-notification': PropTypes.bool.isRequired,
'disable-web-page-preview': PropTypes.bool.isRequired,
global: PropTypes.bool.isRequired,
'parse-mode': PropTypes.string.isRequired,
'state-changes-only': PropTypes.bool.isRequired,
token: PropTypes.bool.isRequired,
@ -24,7 +23,6 @@ const TelegramConfig = React.createClass({
chatID: this.chatID.value,
disableNotification: this.disableNotification.checked,
disableWebPagePreview: this.disableWebPagePreview.checked,
global: this.global.checked,
parseMode: this.parseMode.checked,
stateChangesOnly: this.stateChangesOnly.checked,
token: this.token.value,
@ -36,7 +34,7 @@ const TelegramConfig = React.createClass({
render() {
const {options} = this.props.config;
const {global, url, token} = options;
const {url, token} = options;
const chatID = options['chat-id'];
const disableNotification = options['chat-id'];
const disableWebPagePreview = options['disable-web-page-preview'];
@ -86,13 +84,6 @@ const TelegramConfig = React.createClass({
</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-control-static">
<input id="stateChangesOnly" type="checkbox" defaultChecked={stateChangesOnly} ref={(r) => this.stateChangesOnly = r} />