about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/list_editor/components/edit_list_form.js
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-08-03 19:10:39 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-08-03 19:10:39 +0200
commit089c6410208d294e7f1995e000bd796d4625246f (patch)
tree9683d8e065ba8bb888c0cde81f4ddd0cf859d79d /app/javascript/mastodon/features/list_editor/components/edit_list_form.js
parent29609c09f4f6e50ebba60c8472e015c16275a4d2 (diff)
Disable list title validation button when list title is empty (#11475)
Diffstat (limited to 'app/javascript/mastodon/features/list_editor/components/edit_list_form.js')
-rw-r--r--app/javascript/mastodon/features/list_editor/components/edit_list_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/list_editor/components/edit_list_form.js b/app/javascript/mastodon/features/list_editor/components/edit_list_form.js
index 3dc59c12e..3ccab12a8 100644
--- a/app/javascript/mastodon/features/list_editor/components/edit_list_form.js
+++ b/app/javascript/mastodon/features/list_editor/components/edit_list_form.js
@@ -11,7 +11,7 @@ const messages = defineMessages({
 
 const mapStateToProps = state => ({
   value: state.getIn(['listEditor', 'title']),
-  disabled: !state.getIn(['listEditor', 'isChanged']),
+  disabled: !state.getIn(['listEditor', 'isChanged']) || !state.getIn(['listEditor', 'title']),
 });
 
 const mapDispatchToProps = dispatch => ({