mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
UX: switch to quartlerly period view for search log term graphs
This commit is contained in:
parent
ce79ec0127
commit
6177fb80eb
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue