]> cat aescling's git repositories - mastodon.git/commitdiff
Hide floating action button on search and getting started pages (#9826)
authortmm576 <tmm576@users.noreply.github.com>
Thu, 17 Jan 2019 08:22:12 +0000 (03:22 -0500)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 17 Jan 2019 08:22:12 +0000 (09:22 +0100)
app/javascript/mastodon/features/ui/components/columns_area.js

index ed338c2ebf84858af4b620880f321c682519d6e7..b7e350cbce29175a8e4e578be958364a05574985 100644 (file)
@@ -33,7 +33,7 @@ const messages = defineMessages({
   publish: { id: 'compose_form.publish', defaultMessage: 'Toot' },
 });
 
-const shouldHideFAB = path => path.match(/^\/statuses\//);
+const shouldHideFAB = path => path.match(/^\/statuses\/|^\/search|^\/getting-started/);
 
 export default @(component => injectIntl(component, { withRef: true }))
 class ColumnsArea extends ImmutablePureComponent {