mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 21:43:49 +08:00
eab560fe2a
Co-authored-by: Mark VanLandingham <markvanlan@gmail.com> Co-authored-by: Robin Ward <robin.ward@gmail.com> Co-authored-by: Mark VanLandingham <markvanlan@gmail.com>
26 lines
587 B
JavaScript
26 lines
587 B
JavaScript
import I18n from "I18n";
|
|
import Controller from "@ember/controller";
|
|
export const DEFAULT_PERIOD = "yearly";
|
|
|
|
export default Controller.extend({
|
|
loading: false,
|
|
period: DEFAULT_PERIOD,
|
|
searchType: "all",
|
|
|
|
init() {
|
|
this._super(...arguments);
|
|
|
|
this.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")
|
|
}
|
|
];
|
|
}
|
|
});
|