Skip to content
Permalink
Browse files

Suggest $USERNAME for the username field (issue 156)

  • Loading branch information...
SchoofsKelvin committed Jul 3, 2019
1 parent ba79853 commit a318cdc94c8c6838c7d31b5b4bc1231a8b615b3c
Showing with 1 addition and 1 deletion.
  1. +1 −1 webview/src/ConfigEditor/fields.tsx
@@ -82,7 +82,7 @@ export function agent(config: FileSystemConfig, onChange: FSCChanged<'agent'>):
export function username(config: FileSystemConfig, onChange: FSCChanged<'username'>): React.ReactElement {
const callback = (newValue?: string) => onChange('username', newValue === '<Prompt>' ? (true as any) : newValue);
const description = 'Username for authentication. Supports environment variables, e.g. $USERNAME';
const values = ['<Prompt>'];
const values = ['<Prompt>', '$USERNAME'];
const value = (config.username as any) === true ? '<Prompt>' : config.username;
return <FieldDropdownWithInput key="username" label="Username" {...{ value, values, description }} onChange={callback} optional={true} />
}

0 comments on commit a318cdc

Please sign in to comment.
You can’t perform that action at this time.