mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 01:59:57 +08:00
Merge pull request #4490 from cpradio/options-to-full-search
FEATURE: search menu options opens full page search
This commit is contained in:
commit
f73f4fa2e2
@ -18,9 +18,10 @@ export default Ember.Controller.extend({
|
|||||||
bulkSelectEnabled: null,
|
bulkSelectEnabled: null,
|
||||||
|
|
||||||
loading: Em.computed.not("model"),
|
loading: Em.computed.not("model"),
|
||||||
queryParams: ["q", "context_id", "context", "skip_context"],
|
queryParams: ["q", "isExpanded", "context_id", "context", "skip_context"],
|
||||||
q: null,
|
q: null,
|
||||||
selected: [],
|
selected: [],
|
||||||
|
isExpanded: false,
|
||||||
context_id: null,
|
context_id: null,
|
||||||
context: null,
|
context: null,
|
||||||
searching: false,
|
searching: false,
|
||||||
|
@ -5,7 +5,7 @@ import PreloadStore from 'preload-store';
|
|||||||
import { getTransient, setTransient } from 'discourse/lib/page-tracker';
|
import { getTransient, setTransient } from 'discourse/lib/page-tracker';
|
||||||
|
|
||||||
export default Discourse.Route.extend({
|
export default Discourse.Route.extend({
|
||||||
queryParams: { q: {}, context_id: {}, context: {}, skip_context: {} },
|
queryParams: { q: {}, isExpanded: false, context_id: {}, context: {}, skip_context: {} },
|
||||||
|
|
||||||
model(params) {
|
model(params) {
|
||||||
const cached = getTransient('lastSearch');
|
const cached = getTransient('lastSearch');
|
||||||
|
@ -44,7 +44,7 @@ createWidget('search-context', {
|
|||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
result.push(this.attach('link', { action: 'showSearchHelp',
|
result.push(this.attach('link', { href: '/search?isExpanded=true',
|
||||||
label: 'show_help',
|
label: 'show_help',
|
||||||
className: 'show-help' }));
|
className: 'show-help' }));
|
||||||
result.push(h('div.clearfix'));
|
result.push(h('div.clearfix'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user