Fix setting active side panel item on page reload
[arvados-workbench2.git] / src / store / side-panel / side-panel-action.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { default as unionize, ofType, UnionOf } from "unionize";
6
7 export const sidePanelActions = unionize({
8     TOGGLE_SIDE_PANEL_ITEM_OPEN: ofType<string>()
9 }, {
10     tag: 'type',
11     value: 'payload'
12 });
13
14 export type SidePanelAction = UnionOf<typeof sidePanelActions>;