Add button to config from each configured handler
parent
e888836315
commit
4ba5784764
|
@ -11,7 +11,13 @@ const AlertaHandler = ({
|
|||
selectedHandler.enabled
|
||||
? <div className="endpoint-tab-contents">
|
||||
<div className="endpoint-tab--parameters">
|
||||
<h4>Parameters from Kapacitor Configuration</h4>
|
||||
<h4 className="u-flex u-jc-space-between">
|
||||
Parameters from Kapacitor Configuration
|
||||
<div className="btn btn-default btn-sm" onClick={onGoToConfig}>
|
||||
<span className="icon cog-thick" />
|
||||
Edit Kapacitor Configuration
|
||||
</div>
|
||||
</h4>
|
||||
<div className="faux-form">
|
||||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
|
|
|
@ -14,7 +14,13 @@ const EmailHandler = ({
|
|||
selectedHandler.enabled
|
||||
? <div className="endpoint-tab-contents">
|
||||
<div className="endpoint-tab--parameters">
|
||||
<h4>Parameters from Kapacitor Configuration</h4>
|
||||
<h4 className="u-flex u-jc-space-between">
|
||||
Parameters from Kapacitor Configuration
|
||||
<div className="btn btn-default btn-sm" onClick={onGoToConfig}>
|
||||
<span className="icon cog-thick" />
|
||||
Edit Kapacitor Configuration
|
||||
</div>
|
||||
</h4>
|
||||
<div className="faux-form">
|
||||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
|
|
|
@ -11,7 +11,13 @@ const HipchatHandler = ({
|
|||
selectedHandler.enabled
|
||||
? <div className="endpoint-tab-contents">
|
||||
<div className="endpoint-tab--parameters">
|
||||
<h4>Parameters for this Alert Handler</h4>
|
||||
<h4 className="u-flex u-jc-space-between">
|
||||
Parameters from Kapacitor Configuration
|
||||
<div className="btn btn-default btn-sm" onClick={onGoToConfig}>
|
||||
<span className="icon cog-thick" />
|
||||
Edit Kapacitor Configuration
|
||||
</div>
|
||||
</h4>
|
||||
<div className="faux-form">
|
||||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
|
|
|
@ -11,7 +11,13 @@ const OpsgenieHandler = ({
|
|||
selectedHandler.enabled
|
||||
? <div className="endpoint-tab-contents">
|
||||
<div className="endpoint-tab--parameters">
|
||||
<h4>Parameters from Kapacitor Configuration</h4>
|
||||
<h4 className="u-flex u-jc-space-between">
|
||||
Parameters from Kapacitor Configuration
|
||||
<div className="btn btn-default btn-sm" onClick={onGoToConfig}>
|
||||
<span className="icon cog-thick" />
|
||||
Edit Kapacitor Configuration
|
||||
</div>
|
||||
</h4>
|
||||
<div className="faux-form">
|
||||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
|
|
|
@ -11,7 +11,13 @@ const PagerdutyHandler = ({
|
|||
selectedHandler.enabled
|
||||
? <div className="endpoint-tab-contents">
|
||||
<div className="endpoint-tab--parameters">
|
||||
<h4>Parameters for this Alert Handler</h4>
|
||||
<h4 className="u-flex u-jc-space-between">
|
||||
Parameters from Kapacitor Configuration
|
||||
<div className="btn btn-default btn-sm" onClick={onGoToConfig}>
|
||||
<span className="icon cog-thick" />
|
||||
Edit Kapacitor Configuration
|
||||
</div>
|
||||
</h4>
|
||||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
handleModifyHandler={handleModifyHandler}
|
||||
|
|
|
@ -11,7 +11,13 @@ const PushoverHandler = ({
|
|||
selectedHandler.enabled
|
||||
? <div className="endpoint-tab-contents">
|
||||
<div className="endpoint-tab--parameters">
|
||||
<h4>Parameters from Kapacitor Configuration</h4>
|
||||
<h4 className="u-flex u-jc-space-between">
|
||||
Parameters from Kapacitor Configuration
|
||||
<div className="btn btn-default btn-sm" onClick={onGoToConfig}>
|
||||
<span className="icon cog-thick" />
|
||||
Edit Kapacitor Configuration
|
||||
</div>
|
||||
</h4>
|
||||
<div className="faux-form">
|
||||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
|
|
|
@ -11,7 +11,13 @@ const SensuHandler = ({
|
|||
selectedHandler.enabled
|
||||
? <div className="endpoint-tab-contents">
|
||||
<div className="endpoint-tab--parameters">
|
||||
<h4>Parameters from Kapacitor Configuration</h4>
|
||||
<h4 className="u-flex u-jc-space-between">
|
||||
Parameters from Kapacitor Configuration
|
||||
<div className="btn btn-default btn-sm" onClick={onGoToConfig}>
|
||||
<span className="icon cog-thick" />
|
||||
Edit Kapacitor Configuration
|
||||
</div>
|
||||
</h4>
|
||||
<div className="faux-form">
|
||||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
|
|
|
@ -11,7 +11,13 @@ const SlackHandler = ({
|
|||
selectedHandler.enabled
|
||||
? <div className="endpoint-tab-contents">
|
||||
<div className="endpoint-tab--parameters">
|
||||
<h4>Parameters from Kapacitor Configuration</h4>
|
||||
<h4 className="u-flex u-jc-space-between">
|
||||
Parameters from Kapacitor Configuration
|
||||
<div className="btn btn-default btn-sm" onClick={onGoToConfig}>
|
||||
<span className="icon cog-thick" />
|
||||
Edit Kapacitor Configuration
|
||||
</div>
|
||||
</h4>
|
||||
<div className="faux-form">
|
||||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
|
|
|
@ -11,7 +11,13 @@ const TalkHandler = ({
|
|||
selectedHandler.enabled
|
||||
? <div className="endpoint-tab-contents">
|
||||
<div className="endpoint-tab--parameters">
|
||||
<h4>Parameters from Kapacitor Configuration</h4>
|
||||
<h4 className="u-flex u-jc-space-between">
|
||||
Parameters from Kapacitor Configuration
|
||||
<div className="btn btn-default btn-sm" onClick={onGoToConfig}>
|
||||
<span className="icon cog-thick" />
|
||||
Edit Kapacitor Configuration
|
||||
</div>
|
||||
</h4>
|
||||
<div className="faux-form">
|
||||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
|
|
|
@ -12,7 +12,13 @@ const TelegramHandler = ({
|
|||
selectedHandler.enabled
|
||||
? <div className="endpoint-tab-contents">
|
||||
<div className="endpoint-tab--parameters">
|
||||
<h4>Parameters from Kapacitor Configuration</h4>
|
||||
<h4 className="u-flex u-jc-space-between">
|
||||
Parameters from Kapacitor Configuration
|
||||
<div className="btn btn-default btn-sm" onClick={onGoToConfig}>
|
||||
<span className="icon cog-thick" />
|
||||
Edit Kapacitor Configuration
|
||||
</div>
|
||||
</h4>
|
||||
<div className="faux-form">
|
||||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
|
|
|
@ -11,7 +11,13 @@ const VictoropsHandler = ({
|
|||
selectedHandler.enabled
|
||||
? <div className="endpoint-tab-contents">
|
||||
<div className="endpoint-tab--parameters">
|
||||
<h4>Parameters from Kapacitor Configuration</h4>
|
||||
<h4 className="u-flex u-jc-space-between">
|
||||
Parameters from Kapacitor Configuration
|
||||
<div className="btn btn-default btn-sm" onClick={onGoToConfig}>
|
||||
<span className="icon cog-thick" />
|
||||
Edit Kapacitor Configuration
|
||||
</div>
|
||||
</h4>
|
||||
<div className="faux-form">
|
||||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
|
|
|
@ -579,6 +579,9 @@ $rule-builder--radius-lg: 5px;
|
|||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.endpoint-tab--parameters h4 .btn {
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
/*
|
||||
Rule Details
|
||||
|
|
Loading…
Reference in New Issue