From 9f3df3edee2039e171e715da8c153c963ff8d922 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 6 Sep 2023 17:23:58 +0200 Subject: [PATCH] [Glitch] Add some information about Full-text search being disabled in search popout Port 9c1ef8302abe52f6b41eeafadc1bc30dfa079e18 to glitch-soc Signed-off-by: Claire --- .../features/compose/components/search.jsx | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/app/javascript/flavours/glitch/features/compose/components/search.jsx b/app/javascript/flavours/glitch/features/compose/components/search.jsx index 6aacb9a20f..bebf4d8aba 100644 --- a/app/javascript/flavours/glitch/features/compose/components/search.jsx +++ b/app/javascript/flavours/glitch/features/compose/components/search.jsx @@ -9,7 +9,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes'; import { Icon } from 'flavours/glitch/components/icon'; -import { searchEnabled } from 'flavours/glitch/initial_state'; +import { domain, searchEnabled } from 'flavours/glitch/initial_state'; import { focusRoot } from 'flavours/glitch/utils/dom_helpers'; import { HASHTAG_REGEX } from 'flavours/glitch/utils/hashtags'; @@ -363,18 +363,20 @@ class Search extends PureComponent { )} - {searchEnabled && ( - <> -

+

-
- {this.defaultOptions.map(({ key, label, action }, i) => ( - - ))} -
- + {searchEnabled ? ( +
+ {this.defaultOptions.map(({ key, label, action }, i) => ( + + ))} +
+ ) : ( +
+ +
)}