Add includes image choice to advanced search ui.

This commit is contained in:
Jakub Macina 2017-06-05 18:00:15 +02:00
parent d78956c0c5
commit 23d67d2100
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,7 @@ const REGEXP_MIN_POST_COUNT_PREFIX = /^min_post_count:/ig;
const REGEXP_POST_TIME_PREFIX = /^(before|after):/ig;
const REGEXP_TAGS_REPLACE = /(^(tags?:|#(?=[a-z0-9\-]+::tag))|::tag\s?$)/ig;
const REGEXP_IN_MATCH = /^in:(posted|watching|tracking|bookmarks|first|pinned|unpinned|wiki|unseen)/ig;
const REGEXP_IN_MATCH = /^in:(posted|watching|tracking|bookmarks|first|pinned|unpinned|wiki|unseen|image)/ig;
const REGEXP_SPECIAL_IN_LIKES_MATCH = /^in:likes/ig;
const REGEXP_SPECIAL_IN_PRIVATE_MATCH = /^in:private/ig;
const REGEXP_SPECIAL_IN_SEEN_MATCH = /^in:seen/ig;
@ -36,6 +36,7 @@ export default Em.Component.extend({
{name: I18n.t('search.advanced.filters.pinned'), value: "pinned"},
{name: I18n.t('search.advanced.filters.unpinned'), value: "unpinned"},
{name: I18n.t('search.advanced.filters.wiki'), value: "wiki"},
{name: I18n.t('search.advanced.filters.images'), value: "image"},
],
statusOptions: [
{name: I18n.t('search.advanced.statuses.open'), value: "open"},

View File

@ -1344,6 +1344,7 @@ en:
seen: I've read
unseen: I've not read
wiki: are wiki
images: includes image
statuses:
label: Where topics
open: are open