X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/7a8fafa13f5f94945cf0a4c5965db273f3435823..4aee3fa5225c21771b23666d29be9d796758a65f:/src/store/process-panel/process-panel.ts?ds=sidebyside diff --git a/src/store/process-panel/process-panel.ts b/src/store/process-panel/process-panel.ts index b521a672..49c2691d 100644 --- a/src/store/process-panel/process-panel.ts +++ b/src/store/process-panel/process-panel.ts @@ -2,6 +2,16 @@ // // SPDX-License-Identifier: AGPL-3.0 +import { RouterState } from "react-router-redux"; +import { matchProcessRoute } from "routes/routes"; + export interface ProcessPanel { + containerRequestUuid: string; filters: { [status: string]: boolean }; } + +export const getProcessPanelCurrentUuid = (router: RouterState) => { + const pathname = router.location ? router.location.pathname : ''; + const match = matchProcessRoute(pathname); + return match ? match.params.id : undefined; +}; \ No newline at end of file