aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-04-12 12:11:33 +0200
committerLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-04-12 12:11:33 +0200
commita120ff9413f89adf963ffc2a1570816012412208 (patch)
tree3b82690d44ddaf98620ab9b96b057560b9859c00 /src
parentUpdate strings (diff)
downloadferdium-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')
-rw-r--r--src/features/workspaces/components/CreateWorkspaceForm.js4
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';
7import Form from '../../../lib/Form'; 7import Form from '../../../lib/Form';
8import { required } from '../../../helpers/validation-helpers'; 8import { required } from '../../../helpers/validation-helpers';
9import { gaEvent } from '../../../lib/analytics'; 9import { gaEvent } from '../../../lib/analytics';
10import { GA_CATEGORY_WORKSPACES } from '../index'; 10import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../index';
11 11
12const messages = defineMessages({ 12const 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}