Enhance messaging for disabled configuration

- Fixes Pagerduty save button
pull/10616/head
Brandon Farmer 2018-05-10 10:59:56 -07:00
parent 564696655c
commit 0204716709
12 changed files with 14 additions and 14 deletions

View File

@ -5,7 +5,7 @@ const HandlerEmpty = ({onGoToConfig, validationError}) => (
<div className="endpoint-tab-contents">
<div className="endpoint-tab--parameters">
<div className="endpoint-tab--parameters--empty">
<p>This handler has not been configured</p>
<p>This handler is not enabled</p>
<div className="form-group form-group-submit col-xs-12 text-center">
<button
className="btn btn-primary"

View File

@ -109,7 +109,7 @@ class AlertaConfig extends PureComponent<Props, State> {
checked={enabled}
onChange={this.handleEnabledChange}
/>
<label htmlFor="disabled">Enable configuration</label>
<label htmlFor="disabled">Configuration Enabled</label>
</div>
</div>

View File

@ -106,7 +106,7 @@ class HipchatConfig extends PureComponent<Props, State> {
checked={enabled}
onChange={this.handleEnabledChange}
/>
<label htmlFor="disabled">Enable configuration</label>
<label htmlFor="disabled">Configuration Enabled</label>
</div>
</div>

View File

@ -96,7 +96,7 @@ class OpsGenieConfig extends PureComponent<Props, State> {
checked={enabled}
onChange={this.handleEnabledChange}
/>
<label htmlFor="disabled">Enable configuration</label>
<label htmlFor="disabled">Configuration Enabled</label>
</div>
</div>

View File

@ -80,7 +80,7 @@ class PagerDutyConfig extends PureComponent<Props, State> {
checked={enabled}
onChange={this.handleEnabledChange}
/>
<label htmlFor="disabled">Enable configuration</label>
<label htmlFor="disabled">Configuration Enabled</label>
</div>
</div>
@ -88,14 +88,14 @@ class PagerDutyConfig extends PureComponent<Props, State> {
<button
className="btn btn-primary"
type="submit"
disabled={this.state.testEnabled || !enabled}
disabled={this.state.testEnabled}
>
<span className="icon checkmark" />
Save Changes
</button>
<button
className="btn btn-primary"
disabled={!this.state.testEnabled}
disabled={!this.state.testEnabled || !enabled}
onClick={this.props.onTest}
>
<span className="icon pulse-c" />

View File

@ -110,7 +110,7 @@ class PushoverConfig extends PureComponent<Props, State> {
checked={enabled}
onChange={this.handleEnabledChange}
/>
<label htmlFor="disabled">Enable configuration</label>
<label htmlFor="disabled">Configuration Enabled</label>
</div>
</div>

View File

@ -144,7 +144,7 @@ class SMTPConfig extends PureComponent<Props, State> {
checked={enabled}
onChange={this.handleEnabledChange}
/>
<label htmlFor="disabled">Enable configuration</label>
<label htmlFor="disabled">Configuration Enabled</label>
</div>
</div>

View File

@ -78,7 +78,7 @@ class SensuConfig extends PureComponent<Props, State> {
checked={enabled}
onChange={this.handleEnabledChange}
/>
<label htmlFor="disabled">Enable configuration</label>
<label htmlFor="disabled">Configuration Enabled</label>
</div>
</div>

View File

@ -85,7 +85,7 @@ class SlackConfig extends PureComponent<Props, State> {
checked={enabled}
onChange={this.handleEnabledChange}
/>
<label htmlFor="disabled">Enable configuration</label>
<label htmlFor="disabled">Configuration Enabled</label>
</div>
</div>

View File

@ -79,7 +79,7 @@ class TalkConfig extends PureComponent<Props, State> {
checked={enabled}
onChange={this.handleEnabledChange}
/>
<label htmlFor="disabled">Enable configuration</label>
<label htmlFor="disabled">Configuration Enabled</label>
</div>
</div>

View File

@ -189,7 +189,7 @@ class TelegramConfig extends PureComponent<Props, State> {
checked={enabled}
onChange={this.handleEnabledChange}
/>
<label htmlFor="disabled">Enable configuration</label>
<label htmlFor="disabled">Configuration Enabled</label>
</div>
</div>

View File

@ -97,7 +97,7 @@ class VictorOpsConfig extends PureComponent<Props, State> {
checked={enabled}
onChange={this.handleEnabledChange}
/>
<label htmlFor="disabled">Enable configuration</label>
<label htmlFor="disabled">Configuration Enabled</label>
</div>
</div>