]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Add limit of 8 different reaction types per announcement
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 25 Jan 2020 04:23:33 +0000 (05:23 +0100)
committerThibaut Girka <thib@sitedethib.com>
Sat, 25 Jan 2020 09:36:27 +0000 (10:36 +0100)
Port f816da9c6474ddf437681fbf7f5346672436ccdf to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/features/getting_started/components/announcements.js

index 52c95441bf045a71e2e7d97bd79a3d4b8144f33e..71b54b06069369136b32eae8ef3a511f76cf606f 100644 (file)
@@ -265,7 +265,7 @@ class ReactionsBar extends ImmutablePureComponent {
           />
         ))}
 
-        <EmojiPickerDropdown onPickEmoji={this.handleEmojiPick} button={<Icon id='plus' />} />
+        {visibleReactions.size < 8 && <EmojiPickerDropdown onPickEmoji={this.handleEmojiPick} button={<Icon id='plus' />} />}
       </div>
     );
   }