From 63a25283afe5b892745a3699127ac1d43d1e14b8 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Wed, 25 Sep 2019 17:02:14 -0600 Subject: [PATCH] Change search page load and button behavior --- app/views/search/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/search/index.js b/app/views/search/index.js index 6fd6f63..968809a 100644 --- a/app/views/search/index.js +++ b/app/views/search/index.js @@ -10,6 +10,8 @@ export const searchView = (state, emit, i18n) => { if (controller.hasQuery && controller.queryIsNew) { controller.search(); + } else if (controller.state.lastSearch !== '') { + controller.appState.query.for = controller.state.lastSearch; } // Returning an array in a view allows non-shared parent HTML elements. @@ -29,7 +31,10 @@ export const searchView = (state, emit, i18n) => { ${!controller.doneSearching ? 'disabled' : null} > -