2019-10-24 01:06:54 +08:00
|
|
|
import Controller from "@ember/controller";
|
2020-05-14 04:23:41 +08:00
|
|
|
import I18n from "I18n";
|
2019-03-29 09:59:08 +08:00
|
|
|
export const DEFAULT_PERIOD = "yearly";
|
|
|
|
|
2019-10-24 01:06:54 +08:00
|
|
|
export default Controller.extend({
|
2017-11-15 08:13:50 +08:00
|
|
|
loading: false,
|
2019-03-29 09:59:08 +08:00
|
|
|
period: DEFAULT_PERIOD,
|
2017-11-29 01:54:27 +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"),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
2017-11-15 08:13:50 +08:00
|
|
|
});
|