]> cat aescling's git repositories - mastodon.git/commitdiff
Fixed improper dropdown func binding for #293 + toot button spacing
authorkibigo! <marrus-sh@users.noreply.github.com>
Sat, 6 Jan 2018 05:02:53 +0000 (21:02 -0800)
committerkibigo! <marrus-sh@users.noreply.github.com>
Sat, 6 Jan 2018 05:02:53 +0000 (21:02 -0800)
app/javascript/flavours/glitch/components/dropdown_menu.js
app/javascript/flavours/glitch/features/composer/publisher/index.js

index 706390c9276b1b375c06b1587668d78e131936ff..7ba7fb22be8230ea6b61c2aff34de6224e592e07 100644 (file)
@@ -137,7 +137,7 @@ export default class Dropdown extends React.PureComponent {
           (item, i) => item ? {
             ...item,
             name: `${item.text}-${i}`,
-            onClick: this.handleItemClick.bind(i),
+            onClick: this.handleItemClick.bind(this, i),
           } : null
         ),
       });
index f54fd68b7085d08f14b050472704e93973da4d70..5ded26f80d811b8e2e000c9651ca606080fd2478 100644 (file)
@@ -85,6 +85,7 @@ export default function ComposerPublisher ({
                     unlisted: 'unlock-alt',
                   }[privacy]}
                 />
+                {' '}
                 <FormattedMessage {...messages.publish} />
               </span>
             );