FEATURE: search menu options opens full page search

This commit is contained in:
cpradio 2016-10-11 19:59:37 -04:00
parent 6bf0bc3408
commit 1d27610ffc
3 changed files with 4 additions and 3 deletions

View File

@ -18,9 +18,10 @@ export default Ember.Controller.extend({
bulkSelectEnabled: null,
loading: Em.computed.not("model"),
queryParams: ["q", "context_id", "context", "skip_context"],
queryParams: ["q", "isExpanded", "context_id", "context", "skip_context"],
q: null,
selected: [],
isExpanded: false,
context_id: null,
context: null,
searching: false,

View File

@ -5,7 +5,7 @@ import PreloadStore from 'preload-store';
import { getTransient, setTransient } from 'discourse/lib/page-tracker';
export default Discourse.Route.extend({
queryParams: { q: {}, context_id: {}, context: {}, skip_context: {} },
queryParams: { q: {}, isExpanded: false, context_id: {}, context: {}, skip_context: {} },
model(params) {
const cached = getTransient('lastSearch');

View File

@ -44,7 +44,7 @@ createWidget('search-context', {
]));
}
result.push(this.attach('link', { href: '/search',
result.push(this.attach('link', { href: '/search?isExpanded=true',
label: 'show_help',
className: 'show-help' }));
result.push(h('div.clearfix'));