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
Daniel Campbell 2018-08-15 14:03:07 -07:00
parent b9679cf25c
commit bf0a141347
1 changed files with 9 additions and 0 deletions

View File

@ -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 (