Http config is post config
parent
e23d03a723
commit
30bb530a60
|
@ -1,35 +0,0 @@
|
|||
import React, {PropTypes} from 'react'
|
||||
import EndpointInput from 'src/kapacitor/components/EndpointInput'
|
||||
|
||||
const HttpConfig = ({selectedEndpoint, handleModifyEndpoint}) => {
|
||||
return (
|
||||
<div className="rule-section--row rule-section--border-bottom">
|
||||
<p>Alert Parameters:</p>
|
||||
<div className="optional-alert-parameters">
|
||||
<EndpointInput
|
||||
selectedEndpoint={selectedEndpoint}
|
||||
handleModifyEndpoint={handleModifyEndpoint}
|
||||
fieldName="url"
|
||||
fieldDisplay="URL"
|
||||
placeholder="Ex: http://example.com/api/alert"
|
||||
/>
|
||||
<EndpointInput
|
||||
selectedEndpoint={selectedEndpoint}
|
||||
handleModifyEndpoint={handleModifyEndpoint}
|
||||
fieldName="url"
|
||||
fieldDisplay="URL"
|
||||
placeholder="Ex: http://example.com/api/alert"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
const {func, shape} = PropTypes
|
||||
|
||||
HttpConfig.propTypes = {
|
||||
selectedEndpoint: shape({}).isRequired,
|
||||
handleModifyEndpoint: func.isRequired,
|
||||
}
|
||||
|
||||
export default HttpConfig
|
Loading…
Reference in New Issue