mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -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({
|
export default Ember.Controller.extend({
|
||||||
loading: false,
|
loading: false,
|
||||||
term: null,
|
term: null,
|
||||||
period: "yearly",
|
period: "quarterly",
|
||||||
searchType: "all",
|
searchType: "all",
|
||||||
|
|
||||||
searchTypeOptions: [
|
searchTypeOptions: [
|
||||||
|
@ -10,7 +10,7 @@ class Admin::SearchLogsController < Admin::AdminController
|
|||||||
params.require(:term)
|
params.require(:term)
|
||||||
|
|
||||||
term = params[:term]
|
term = params[:term]
|
||||||
period = params[:period] || "yearly"
|
period = params[:period] || "quarterly"
|
||||||
search_type = params[:search_type] || "all"
|
search_type = params[:search_type] || "all"
|
||||||
|
|
||||||
details = SearchLog.term_details(term, period&.to_sym, search_type&.to_sym)
|
details = SearchLog.term_details(term, period&.to_sym, search_type&.to_sym)
|
||||||
|
Loading…
Reference in New Issue
Block a user