diff options
author | 2019-04-12 12:11:33 +0200 | |
---|---|---|
committer | 2019-04-12 12:11:33 +0200 | |
commit | a120ff9413f89adf963ffc2a1570816012412208 (patch) | |
tree | 3b82690d44ddaf98620ab9b96b057560b9859c00 /src/features | |
parent | Update strings (diff) | |
download | ferdium-app-a120ff9413f89adf963ffc2a1570816012412208.tar.gz ferdium-app-a120ff9413f89adf963ffc2a1570816012412208.tar.zst ferdium-app-a120ff9413f89adf963ffc2a1570816012412208.zip |
disable autofocus on create workspace input for free users
Diffstat (limited to 'src/features')
-rw-r--r-- | src/features/workspaces/components/CreateWorkspaceForm.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/workspaces/components/CreateWorkspaceForm.js b/src/features/workspaces/components/CreateWorkspaceForm.js index 2c00ea63c..cddbb2b04 100644 --- a/src/features/workspaces/components/CreateWorkspaceForm.js +++ b/src/features/workspaces/components/CreateWorkspaceForm.js | |||
@@ -7,7 +7,7 @@ import injectSheet from 'react-jss'; | |||
7 | import Form from '../../../lib/Form'; | 7 | import Form from '../../../lib/Form'; |
8 | import { required } from '../../../helpers/validation-helpers'; | 8 | import { required } from '../../../helpers/validation-helpers'; |
9 | import { gaEvent } from '../../../lib/analytics'; | 9 | import { gaEvent } from '../../../lib/analytics'; |
10 | import { GA_CATEGORY_WORKSPACES } from '../index'; | 10 | import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../index'; |
11 | 11 | ||
12 | const messages = defineMessages({ | 12 | const messages = defineMessages({ |
13 | submitButton: { | 13 | submitButton: { |
@@ -82,7 +82,7 @@ class CreateWorkspaceForm extends Component { | |||
82 | {...form.$('name').bind()} | 82 | {...form.$('name').bind()} |
83 | showLabel={false} | 83 | showLabel={false} |
84 | onEnterKey={this.submitForm.bind(this, form)} | 84 | onEnterKey={this.submitForm.bind(this, form)} |
85 | focus | 85 | focus={workspaceStore.isUserAllowedToUseFeature} |
86 | /> | 86 | /> |
87 | <Button | 87 | <Button |
88 | className={classes.submitButton} | 88 | className={classes.submitButton} |