Display placeholder to indicate password set in server
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com> Co-authored-by: Daniel Campbell <metalwhirlwind@gmail.com>pull/4226/head
parent
b9679cf25c
commit
bf0a141347
|
@ -121,6 +121,7 @@ class SourceStep extends PureComponent<Props, State> {
|
|||
<WizardTextInput
|
||||
value={source.password}
|
||||
label="Password"
|
||||
placeholder={this.passwordPlaceholder}
|
||||
onChange={this.onChangeInput('password')}
|
||||
/>
|
||||
<WizardTextInput
|
||||
|
@ -159,6 +160,14 @@ class SourceStep extends PureComponent<Props, State> {
|
|||
)
|
||||
}
|
||||
|
||||
private get passwordPlaceholder() {
|
||||
const {source} = this.props
|
||||
if (source.authentication === 'basic') {
|
||||
return 'Value saved in server'
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
private get authIndicator(): JSX.Element {
|
||||
const {me} = this.props
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue