Merge pull request #4226 from influxdata/wizard-bugs

Display placeholder to indicate password set in server
pull/4230/head
Daniel Campbell 2018-08-15 15:22:38 -07:00 committed by GitHub
commit 728f6b8afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 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,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 (