Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove unused AdminSearchFilters component and strings (#37974)

Martin Brennan07d15c7bcfe5
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index bebd316158a..a4d74fe9d34 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -6414,22 +6414,6 @@ en:
result_count:
one: '%{count} result for "%{filter}"'
other: '%{count} results for "%{filter}"'
- result_types:
- page:
- one: "Page"
- other: "Pages"
- report:
- one: "Report"
- other: "Reports"
- setting:
- one: "Setting"
- other: "Settings"
- theme:
- one: "Theme"
- other: "Themes"
- component:
- one: "Component"
- other: "Components"
new_features:
title: "What's new?"
diff --git a/frontend/discourse/admin/components/admin-search-filters.gjs b/frontend/discourse/admin/components/admin-search-filters.gjs
deleted file mode 100644
index 2617669f54c..00000000000
--- a/frontend/discourse/admin/components/admin-search-filters.gjs
+++ /dev/null
@@ -1,27 +0,0 @@
-import { concat, fn, get } from "@ember/helper";
-import DButton from "discourse/components/d-button";
-import concatClass from "discourse/helpers/concat-class";
-import { i18n } from "discourse-i18n";
-
-const AdminSearchFilters = <template>
- <div class="admin-search__filters">
- {{#each @types as |type|}}
- <span class={{concat "admin-search__filter --" type}}>
- <DButton
- class={{concatClass
- "btn-default btn-small admin-search__filter-item"
- (if (get @typeFilters type) "is-active")
- }}
- @translatedLabel={{i18n
- (concat "admin.search.result_types." type)
- count=2
- }}
- @icon={{if (get @typeFilters type) "check" "far-circle"}}
- @action={{fn @toggleTypeFilter type}}
- />
- </span>
- {{/each}}
- </div>
-</template>;
-
-export default AdminSearchFilters;