2020-05-13 16:23:41 -04:00
|
|
|
import I18n from "I18n";
|
2019-10-23 13:06:54 -04:00
|
|
|
import Controller from "@ember/controller";
|
2019-03-28 21:59:08 -04:00
|
|
|
import { DEFAULT_PERIOD } from "admin/controllers/admin-search-logs-index";
|
|
|
|
|
2019-10-23 13:06:54 -04:00
|
|
|
export default Controller.extend({
|
2017-12-19 21:41:31 -05:00
|
|
|
loading: false,
|
|
|
|
term: null,
|
2019-03-28 21:59:08 -04:00
|
|
|
period: DEFAULT_PERIOD,
|
2017-12-19 21:41:31 -05:00
|
|
|
searchType: "all",
|
|
|
|
|
2019-05-28 06:15:12 -04:00
|
|
|
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")
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: "click_through_only",
|
|
|
|
name: I18n.t("admin.logs.search_logs.types.click_through_only")
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
2017-12-19 21:41:31 -05:00
|
|
|
});
|