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.
This commit is contained in:
Guo Xiang Tan 2019-03-29 09:59:08 +08:00
parent 8c2fa99f78
commit c42df7ddd7
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,8 @@
export const DEFAULT_PERIOD = "yearly";
export default Ember.Controller.extend({
loading: false,
period: "yearly",
period: DEFAULT_PERIOD,
searchType: "all",
searchTypeOptions: [

View File

@ -1,7 +1,9 @@
import { DEFAULT_PERIOD } from "admin/controllers/admin-search-logs-index";
export default Ember.Controller.extend({
loading: false,
term: null,
period: "quarterly",
period: DEFAULT_PERIOD,
searchType: "all",
searchTypeOptions: [