search scope checkbox is default checked for your messages too

This commit is contained in:
Neil Lalonde 2017-02-22 17:45:12 -05:00
parent 0551b3f5ee
commit c00ffabac3
1 changed files with 3 additions and 1 deletions

View File

@ -163,6 +163,8 @@ createWidget('header-buttons', {
} }
}); });
const forceContextEnabled = ['category', 'user', 'private_messages'];
export default createWidget('header', { export default createWidget('header', {
tagName: 'header.d-header.clearfix', tagName: 'header.d-header.clearfix',
buildKey: () => `header`, buildKey: () => `header`,
@ -200,7 +202,7 @@ export default createWidget('header', {
state.searchContextType = contextType; state.searchContextType = contextType;
if (state.contextEnabled === undefined) { if (state.contextEnabled === undefined) {
if (contextType === 'category' || contextType === 'user') { if (forceContextEnabled.includes(contextType)) {
state.contextEnabled = true; state.contextEnabled = true;
} }
} }