aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt-odlux/odlux/apps/inventoryApp/src/handlers/panelHandler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt-odlux/odlux/apps/inventoryApp/src/handlers/panelHandler.ts')
-rw-r--r--sdnr/wt-odlux/odlux/apps/inventoryApp/src/handlers/panelHandler.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/sdnr/wt-odlux/odlux/apps/inventoryApp/src/handlers/panelHandler.ts b/sdnr/wt-odlux/odlux/apps/inventoryApp/src/handlers/panelHandler.ts
new file mode 100644
index 000000000..7912d0ea5
--- /dev/null
+++ b/sdnr/wt-odlux/odlux/apps/inventoryApp/src/handlers/panelHandler.ts
@@ -0,0 +1,11 @@
+import { IActionHandler } from '../../../../framework/src/flux/action';
+
+import { SetPanelAction } from '../actions/panelActions';
+import { PanelId } from '../models/panelId';
+
+export const currentOpenPanelHandler: IActionHandler<PanelId> = (state = null, action) => {
+ if (action instanceof SetPanelAction) {
+ state = action.panelId;
+ }
+ return state;
+}; \ No newline at end of file