Skip to content

Commit

Permalink
fixing date-time update not reflected in search.Now using kibana's ti…
Browse files Browse the repository at this point in the history
…mefilter and updating that as well
  • Loading branch information
Benajmin Bondi committed Mar 16, 2016
1 parent 4632733 commit 1cb23ef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions public/hack.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ uiModules.get('kibana').run(function ($rootScope, $location) {


// hook into dashboard kibana lifecycle
uiModules.get('app/dashboard', ['kibana/courier','ngRoute']).run(function ($rootScope, Private, $location, courier, $route, kbnUrl, getAppState, globalState) {
uiModules.get('app/dashboard', ['kibana/courier','ngRoute']).run(function ($rootScope, Private, $location, courier, $route, kbnUrl, getAppState, globalState, timefilter) {


// parses url
Expand Down Expand Up @@ -78,7 +78,11 @@ uiModules.get('app/dashboard', ['kibana/courier','ngRoute']).run(function ($root
//localGlobalState
localGlobalState.time.from = passedInGlobalState.time.from;
localGlobalState.time.mode = passedInGlobalState.time.mode;
localGlobalState.time.to = passedInGlobalState.time.to;
localGlobalState.time.to = passedInGlobalState.time.to;
// timefilter:
timefilter.time.from = passedInGlobalState.time.from;
timefilter.time.mode = passedInGlobalState.time.mode;
timefilter.time.to = passedInGlobalState.time.to;

indexOfDashSign = urlData.indexOf("#");
finalUri = urlData.substr(indexOfDashSign+1);
Expand Down

0 comments on commit 1cb23ef

Please sign in to comment.