]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Hide floating action button on search and getting started pages
authorThibaut Girka <thib@sitedethib.com>
Sun, 20 Jan 2019 10:54:38 +0000 (11:54 +0100)
committerThibaut Girka <thib@sitedethib.com>
Sun, 20 Jan 2019 10:54:38 +0000 (11:54 +0100)
Port 30af4ee65ff43c17d6f7b1b64d6bf1d8699f37c8 to glitch-soc

app/javascript/flavours/glitch/features/ui/components/columns_area.js

index 61f6c0fed12887182ceb1cefa0a51467e9b746de..83b797305790b0fd24be1dde10b35fd68f4d704d 100644 (file)
@@ -30,7 +30,7 @@ const componentMap = {
   'LIST': ListTimeline,
 };
 
-const shouldHideFAB = path => path.match(/^\/statuses\//);
+const shouldHideFAB = path => path.match(/^\/statuses\/|^\/search|^\/getting-started/);
 
 const messages = defineMessages({
   publish: { id: 'compose_form.publish', defaultMessage: 'Toot' },