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 // which stores state in this.appState and the view controller's state to this.state
super(state, i18n, 'search', { super(state, i18n, 'search', {
lastSearch: '', lastSearch: '',
expandSearchOptions: false,
searchSource: 'inventaire', searchSource: 'inventaire',
searchBy: 'title', searchBy: 'title',
done: true, done: true,

View File

@ -44,21 +44,7 @@ export const searchView = (state, emit, i18n) => {
</section>`, </section>`,
// Search Options Section // Search Options Section
html`<section> html`<section class="flex one two-700">
<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}>
<div> <div>
${modal('searchSourceInfo', controller, [ ${modal('searchSourceInfo', controller, [
html`<p> html`<p>
@ -128,7 +114,6 @@ export const searchView = (state, emit, i18n) => {
<span class="checkable">Author</span> <span class="checkable">Author</span>
</label> </label>
</div> </div>
</footer>
</section>`, </section>`,
// Search Results section // Search Results section