about summary refs log tree commit diff
path: root/app/javascript/mastodon/actions/search.js
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-06-27 21:12:26 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-06-27 21:12:26 +0200
commitca8944728f4568bbef8edae99382cd44cbc144d6 (patch)
tree42d043ab082f520a38a99dce572d9e5c5b4ba343 /app/javascript/mastodon/actions/search.js
parent9a90ec3b3be655170077a18ad2fe81ade1498d76 (diff)
Add message telling FTS is disabled when no toot can be found because of this (#11112)
* Add message telling FTS is disabled when no toot can be found because of this

Fixes #11082

* Remove info icon and reword message
Diffstat (limited to 'app/javascript/mastodon/actions/search.js')
-rw-r--r--app/javascript/mastodon/actions/search.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/javascript/mastodon/actions/search.js b/app/javascript/mastodon/actions/search.js
index 7c06670eb..0974fdd15 100644
--- a/app/javascript/mastodon/actions/search.js
+++ b/app/javascript/mastodon/actions/search.js
@@ -48,7 +48,7 @@ export function submitSearch() {
         dispatch(importFetchedStatuses(response.data.statuses));
       }
 
-      dispatch(fetchSearchSuccess(response.data));
+      dispatch(fetchSearchSuccess(response.data, value));
       dispatch(fetchRelationships(response.data.accounts.map(item => item.id)));
     }).catch(error => {
       dispatch(fetchSearchFail(error));
@@ -62,10 +62,11 @@ export function fetchSearchRequest() {
   };
 };
 
-export function fetchSearchSuccess(results) {
+export function fetchSearchSuccess(results, searchTerm) {
   return {
     type: SEARCH_FETCH_SUCCESS,
     results,
+    searchTerm,
   };
 };