Merge pull request #4226 from influxdata/wizard-bugs
Display placeholder to indicate password set in serverpull/4230/head
commit
728f6b8afa
|
@ -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,13 @@ class SourceStep extends PureComponent<Props, State> {
|
|||
)
|
||||
}
|
||||
|
||||
private get passwordPlaceholder() {
|
||||
const {source} = this.props
|
||||
if (source && source.authentication === 'basic') {
|
||||
return 'Value saved in server'
|
||||
}
|
||||
}
|
||||
|
||||
private get authIndicator(): JSX.Element {
|
||||
const {me} = this.props
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue