2019-03-29 09:59:08 +08:00
|
|
|
import { DEFAULT_PERIOD } from "admin/controllers/admin-search-logs-index";
|
|
|
|
|
2017-12-20 10:41:31 +08:00
|
|
|
export default Ember.Controller.extend({
|
|
|
|
loading: false,
|
|
|
|
term: null,
|
2019-03-29 09:59:08 +08:00
|
|
|
period: DEFAULT_PERIOD,
|
2017-12-20 10:41:31 +08:00
|
|
|
searchType: "all",
|
|
|
|
|
2019-05-28 18:15:12 +08: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-20 10:41:31 +08:00
|
|
|
});
|