mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "FEATURE: Added unlisted topics option to advanced search (#7447)"
This reverts commit 539723f8ff since it is failing the build.
This commit is contained in:
@@ -28,17 +28,6 @@ const REGEXP_POST_TIME_WHEN = /^(before|after)/gi;
|
||||
|
||||
const IN_OPTIONS_MAPPING = { images: "with" };
|
||||
|
||||
const DEFAULT_STATUS_OPTIONS = [
|
||||
{ name: I18n.t("search.advanced.statuses.open"), value: "open" },
|
||||
{ name: I18n.t("search.advanced.statuses.closed"), value: "closed" },
|
||||
{ name: I18n.t("search.advanced.statuses.archived"), value: "archived" },
|
||||
{ name: I18n.t("search.advanced.statuses.noreplies"), value: "noreplies" },
|
||||
{
|
||||
name: I18n.t("search.advanced.statuses.single_user"),
|
||||
value: "single_user"
|
||||
}
|
||||
];
|
||||
|
||||
export default Ember.Component.extend({
|
||||
classNames: ["search-advanced-options"],
|
||||
|
||||
@@ -58,6 +47,17 @@ export default Ember.Component.extend({
|
||||
{ name: I18n.t("search.advanced.filters.images"), value: "images" }
|
||||
],
|
||||
|
||||
statusOptions: [
|
||||
{ name: I18n.t("search.advanced.statuses.open"), value: "open" },
|
||||
{ name: I18n.t("search.advanced.statuses.closed"), value: "closed" },
|
||||
{ name: I18n.t("search.advanced.statuses.archived"), value: "archived" },
|
||||
{ name: I18n.t("search.advanced.statuses.noreplies"), value: "noreplies" },
|
||||
{
|
||||
name: I18n.t("search.advanced.statuses.single_user"),
|
||||
value: "single_user"
|
||||
}
|
||||
],
|
||||
|
||||
postTimeOptions: [
|
||||
{ name: I18n.t("search.advanced.post.time.before"), value: "before" },
|
||||
{ name: I18n.t("search.advanced.post.time.after"), value: "after" }
|
||||
@@ -102,20 +102,10 @@ export default Ember.Component.extend({
|
||||
days: ""
|
||||
}
|
||||
},
|
||||
statusOptions: DEFAULT_STATUS_OPTIONS,
|
||||
inOptions: this.currentUser
|
||||
? this.inOptionsForUsers.concat(this.inOptionsForAll)
|
||||
: this.inOptionsForAll
|
||||
});
|
||||
|
||||
if (this.currentUser.get("staff")) {
|
||||
this.setProperties({
|
||||
statusOptions: DEFAULT_STATUS_OPTIONS.concat({
|
||||
name: I18n.t("search.advanced.statuses.unlisted"),
|
||||
value: "unlisted"
|
||||
})
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
_update() {
|
||||
|
||||
Reference in New Issue
Block a user