about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/lists/components
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-08-03 19:10:39 +0200
committerThibaut Girka <thib@sitedethib.com>2019-08-05 13:22:27 +0200
commit8b57d704dc455d1ffb1c31bb0ff6a19d58e322ce (patch)
tree9bace5f9b314276270d5e841cc59ebcfd16a3b9c /app/javascript/flavours/glitch/features/lists/components
parente50554391aa726afe18ae1c0bc7ccbf69d7b4aec (diff)
[Glitch] Disable list title validation button when list title is empty
Port 089c6410208d294e7f1995e000bd796d4625246f to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/lists/components')
-rw-r--r--app/javascript/flavours/glitch/features/lists/components/new_list_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/lists/components/new_list_form.js b/app/javascript/flavours/glitch/features/lists/components/new_list_form.js
index 61fcbeaf9..eb5b6188a 100644
--- a/app/javascript/flavours/glitch/features/lists/components/new_list_form.js
+++ b/app/javascript/flavours/glitch/features/lists/components/new_list_form.js
@@ -66,7 +66,7 @@ export default class NewListForm extends React.PureComponent {
         </label>
 
         <IconButton
-          disabled={disabled}
+          disabled={disabled || !value}
           icon='plus'
           title={title}
           onClick={this.handleClick}