refs #master Merge branch 'origin/master' into 13828-trash-view
[arvados-workbench2.git] / src / store / details-panel / details-panel-action.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { unionize, ofType, UnionOf } from '~/common/unionize';
6
7 export const detailsPanelActions = unionize({
8     TOGGLE_DETAILS_PANEL: ofType<{}>(),
9     LOAD_DETAILS_PANEL: ofType<string>()
10 });
11
12 export type DetailsPanelAction = UnionOf<typeof detailsPanelActions>;
13
14 export const loadDetailsPanel = (uuid: string) => detailsPanelActions.LOAD_DETAILS_PANEL(uuid);
15
16
17
18