about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/reducers
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-06-27 21:12:26 +0200
committermultiple creatures <dev@multiple-creature.party>2020-02-22 01:48:06 -0600
commit8a516e61a382d3ceb88e84b9bcdc2f84045cf4d9 (patch)
treec1ede17a84ffd426cba7cd84e7ccd0306371e1c1 /app/javascript/flavours/glitch/reducers
parent8ab6ea18517b6005223735282542b218ad8a4bf8 (diff)
[Glitch] Add message telling FTS is disabled when no toot can be found because of this
Port ca8944728f4568bbef8edae99382cd44cbc144d6 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/reducers')
-rw-r--r--app/javascript/flavours/glitch/reducers/search.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/search.js b/app/javascript/flavours/glitch/reducers/search.js
index 9a525bf47..1c32a5b9f 100644
--- a/app/javascript/flavours/glitch/reducers/search.js
+++ b/app/javascript/flavours/glitch/reducers/search.js
@@ -16,6 +16,7 @@ const initialState = ImmutableMap({
   submitted: false,
   hidden: false,
   results: ImmutableMap(),
+  searchTerm: '',
 });
 
 export default function search(state = initialState, action) {
@@ -40,7 +41,7 @@ export default function search(state = initialState, action) {
       accounts: ImmutableList(action.results.accounts.map(item => item.id)),
       statuses: ImmutableList(action.results.statuses.map(item => item.id)),
       hashtags: fromJS(action.results.hashtags),
-    })).set('submitted', true);
+    })).set('submitted', true).set('searchTerm', action.searchTerm);
   default:
     return state;
   }