discourse/app/assets/javascripts/admin/controllers/admin-search-logs-index.js.es6
Guo Xiang Tan c42df7ddd7 UX: Use the same default period for search logs index and term.
If the period is different, clicking through to view a term is confusing
because a different period will show a different set of stats.
2019-03-29 09:59:28 +08:00

17 lines
432 B
JavaScript

export const DEFAULT_PERIOD = "yearly";
export default Ember.Controller.extend({
loading: false,
period: DEFAULT_PERIOD,
searchType: "all",
searchTypeOptions: [
{
id: "all",
name: I18n.t("admin.logs.search_logs.types.all_search_types")
},
{ id: "header", name: I18n.t("admin.logs.search_logs.types.header") },
{ id: "full_page", name: I18n.t("admin.logs.search_logs.types.full_page") }
]
});