Skip to content

Commit

Permalink
Add in missing tooltip updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Mar 5, 2020
1 parent 801c694 commit bd06f66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/maps/public/actions/map_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const CLEAR_GOTO = 'CLEAR_GOTO';
export const TRACK_CURRENT_LAYER_STATE = 'TRACK_CURRENT_LAYER_STATE';
export const ROLLBACK_TO_TRACKED_LAYER_STATE = 'ROLLBACK_TO_TRACKED_LAYER_STATE';
export const REMOVE_TRACKED_LAYER_STATE = 'REMOVE_TRACKED_LAYER_STATE';
export const SET_TOOLTIP_STATE = 'SET_TOOLTIP_STATE';
export const SET_OPEN_TOOLTIPS = 'SET_OPEN_TOOLTIPS';
export const UPDATE_DRAW_STATE = 'UPDATE_DRAW_STATE';
export const SET_SCROLL_ZOOM = 'SET_SCROLL_ZOOM';
export const SET_MAP_INIT_ERROR = 'SET_MAP_INIT_ERROR';
Expand Down
8 changes: 4 additions & 4 deletions x-pack/plugins/maps/public/reducers/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
ROLLBACK_TO_TRACKED_LAYER_STATE,
REMOVE_TRACKED_LAYER_STATE,
UPDATE_SOURCE_DATA_REQUEST,
SET_TOOLTIP_STATE,
SET_OPEN_TOOLTIPS,
SET_SCROLL_ZOOM,
SET_MAP_INIT_ERROR,
UPDATE_DRAW_STATE,
Expand Down Expand Up @@ -97,7 +97,7 @@ const INITIAL_STATE = {
ready: false,
mapInitError: null,
goto: null,
tooltipState: null,
openTooltips: [],
mapState: {
zoom: null, // setting this value does not adjust map zoom, read only value used to store current map zoom for persisting between sessions
center: null, // setting this value does not adjust map view, read only value used to store current map center for persisting between sessions
Expand Down Expand Up @@ -138,10 +138,10 @@ export function map(state = INITIAL_STATE, action) {
return trackCurrentLayerState(state, action.layerId);
case ROLLBACK_TO_TRACKED_LAYER_STATE:
return rollbackTrackedLayerState(state, action.layerId);
case SET_TOOLTIP_STATE:
case SET_OPEN_TOOLTIPS:
return {
...state,
tooltipState: action.tooltipState,
openTooltips: action.openTooltips,
};
case SET_MOUSE_COORDINATES:
return {
Expand Down

0 comments on commit bd06f66

Please sign in to comment.