19231: Add smaller page sizes (10 and 20 items) to load faster
[arvados-workbench2.git] / src / store / process-panel / process-panel.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { RouterState } from "react-router-redux";
6 import { matchProcessRoute } from "routes/routes";
7
8 export interface ProcessPanel {
9     containerRequestUuid: string;
10     filters: { [status: string]: boolean };
11 }
12
13 export const getProcessPanelCurrentUuid = (router: RouterState) => {
14     const pathname = router.location ? router.location.pathname : '';
15     const match = matchProcessRoute(pathname);
16     return match ? match.params.id : undefined;
17 };