X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1703f15adf9e3875ff0c78ce78117a87b70ca05c..55acac755ba2516c63e902a11e90c6e3754e5c48:/src/store/process-panel/process-panel.ts diff --git a/src/store/process-panel/process-panel.ts b/src/store/process-panel/process-panel.ts index b521a6729f..49c2691d9d 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