mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
UX: switch to quartlerly period view for search log term graphs
This commit is contained in:
parent
ce79ec0127
commit
6177fb80eb
@ -1,7 +1,7 @@
|
||||
export default Ember.Controller.extend({
|
||||
loading: false,
|
||||
term: null,
|
||||
period: "yearly",
|
||||
period: "quarterly",
|
||||
searchType: "all",
|
||||
|
||||
searchTypeOptions: [
|
||||
|
@ -10,7 +10,7 @@ class Admin::SearchLogsController < Admin::AdminController
|
||||
params.require(:term)
|
||||
|
||||
term = params[:term]
|
||||
period = params[:period] || "yearly"
|
||||
period = params[:period] || "quarterly"
|
||||
search_type = params[:search_type] || "all"
|
||||
|
||||
details = SearchLog.term_details(term, period&.to_sym, search_type&.to_sym)
|
||||
|
Loading…
Reference in New Issue
Block a user