From bc9425a00d19b75b149fbbf0c4ea7345de8721d5 Mon Sep 17 00:00:00 2001 From: Aijana Schumann Date: Mon, 16 Mar 2020 09:15:00 +0100 Subject: Bugfixes for PerformanceApp Fix filter in table not always showing Fix suspectInterval filter not linked between chart and table Fix data not loaded problem Issue-ID: SDNC-1118 Signed-off-by: Aijana Schumann Change-Id: I7d1b71f094dfdd7cd16ed6f7fb5c597a7b209b69 --- .../src/handlers/performanceHistoryRootHandler.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts') diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts index 6b9081502..a05ff3787 100644 --- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts @@ -39,6 +39,7 @@ import { TimeChangeAction } from '../actions/timeChangeAction'; import { UpdateMountId } from '../actions/deviceListActions'; import { SetSubViewAction, ResetAllSubViewsAction, SetFilterVisibility } from '../actions/toggleActions'; import { SubTabType, currentViewType } from '../models/toggleDataType'; +import { ReloadAction } from '../actions/reloadAction'; export interface IPerformanceHistoryStoreState { nodeId: string; @@ -54,6 +55,7 @@ export interface IPerformanceHistoryStoreState { currentOpenPanel: string | null; pmDataIntervalType: PmDataInterval; subViews: toggleViewDataType; + isReloadSchedueled: boolean; } const mountIdHandler: IActionHandler = (state = "", action) => { @@ -66,6 +68,14 @@ const mountIdHandler: IActionHandler = (state = "", action) => { return state; } +const reloadHandler: IActionHandler = (state = false, action) => { + + if (action instanceof ReloadAction) { + state = action.show; + } + return state; +} + const currentOpenPanelHandler: IActionHandler = (state = null, action) => { if (action instanceof SetPanelAction) { @@ -146,7 +156,8 @@ const actionHandlers = { crossPolarDiscrimination: crossPolarDiscriminationActionHandler, currentOpenPanel: currentOpenPanelHandler, pmDataIntervalType: currentPMDataIntervalHandler, - subViews: toogleViewDataHandler + subViews: toogleViewDataHandler, + isReloadSchedueled: reloadHandler }; const performanceHistoryRootHandler = combineActionHandler(actionHandlers); -- cgit 1.2.3-korg