X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/54d815ef6c96fca27ffc20019114539383f9c892..39f1477d9f0592a3d847eb3181c9b814a3b7b153:/src/store/process-logs-panel/process-logs-panel.ts diff --git a/src/store/process-logs-panel/process-logs-panel.ts b/src/store/process-logs-panel/process-logs-panel.ts index 9575c4e5..e0753cde 100644 --- a/src/store/process-logs-panel/process-logs-panel.ts +++ b/src/store/process-logs-panel/process-logs-panel.ts @@ -1,4 +1,5 @@ -import { LogEventType } from '../../models/log'; +import { RootState } from '../store'; +import { matchProcessLogRoute } from '~/routes/routes'; // Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 @@ -13,6 +14,12 @@ export interface ProcessLogs { [logType: string]: string[]; } -export const getProcessLogs = ({ selectedFilter, logs }: ProcessLogsPanel) => { +export const getProcessPanelLogs = ({ selectedFilter, logs }: ProcessLogsPanel) => { return logs[selectedFilter]; }; + +export const getProcessLogsPanelCurrentUuid = ({ router }: RootState) => { + const pathname = router.location ? router.location.pathname : ''; + const match = matchProcessLogRoute(pathname); + return match ? match.params.id : undefined; +};