Don't collapse search options

This commit is contained in:
Robbie Antenesse 2019-09-26 12:25:36 -06:00
parent e39fe52e65
commit 40084c4072
2 changed files with 67 additions and 83 deletions

View File

@ -6,7 +6,6 @@ export class SearchController extends ViewController {
// which stores state in this.appState and the view controller's state to this.state
super(state, i18n, 'search', {
lastSearch: '',
expandSearchOptions: false,
searchSource: 'inventaire',
searchBy: 'title',
done: true,

View File

@ -44,21 +44,7 @@ export const searchView = (state, emit, i18n) => {
</section>`,
// Search Options Section
html`<section>
<header class="flex two four-800">
<div>
<h3>Search Options</h3>
</div>
<div>
<button class="pseudo" onclick=${() => {
controller.state.expandSearchOptions = !controller.state.expandSearchOptions;
emit('render');
}}>
${controller.state.expandSearchOptions !== true ? '+ Expand' : '- Collapse'}
</button>
</div>
</header>
<footer class="flex one two-700" ${controller.state.expandSearchOptions !== true ? 'hidden' : null}>
html`<section class="flex one two-700">
<div>
${modal('searchSourceInfo', controller, [
html`<p>
@ -128,7 +114,6 @@ export const searchView = (state, emit, i18n) => {
<span class="checkable">Author</span>
</label>
</div>
</footer>
</section>`,
// Search Results section