Remove state change only checkbox from Telegram

pull/10616/head
Andrew Watkins 2017-01-23 11:27:01 -08:00
parent 512a854a4d
commit 4f3f12dcaa
1 changed files with 0 additions and 10 deletions

View File

@ -8,7 +8,6 @@ const TelegramConfig = React.createClass({
'disable-notification': PropTypes.bool.isRequired,
'disable-web-page-preview': PropTypes.bool.isRequired,
'parse-mode': PropTypes.string.isRequired,
'state-changes-only': PropTypes.bool.isRequired,
token: PropTypes.bool.isRequired,
url: PropTypes.string.isRequired,
}).isRequired,
@ -24,7 +23,6 @@ const TelegramConfig = React.createClass({
disableNotification: this.disableNotification.checked,
disableWebPagePreview: this.disableWebPagePreview.checked,
parseMode: this.parseMode.checked,
stateChangesOnly: this.stateChangesOnly.checked,
token: this.token.value,
url: this.url.value,
};
@ -39,7 +37,6 @@ const TelegramConfig = React.createClass({
const disableNotification = options['chat-id'];
const disableWebPagePreview = options['disable-web-page-preview'];
const parseMode = options['parse-mode'];
const stateChangesOnly = options['state-changes-only'];
return (
<div>
@ -84,13 +81,6 @@ const TelegramConfig = React.createClass({
</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} />
<label htmlFor="stateChangesOnly">Send alerts on state change only</label>
</div>
</div>
<div className="form-group form-group-submit col-xs-12 col-sm-6 col-sm-offset-3">
<button className="btn btn-block btn-primary" type="submit">Save</button>
</div>