projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
extend-tree-picker
[arvados-workbench2.git]
/
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 9575c4e5d07c35aa88f4bb610c2f56180b1c7697..e0753cde7bfb7e2cee14f9a305d30d3979851049 100644
(file)
--- 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
// Copyright (C) The Arvados Authors. All rights reserved.
//
// SPDX-License-Identifier: AGPL-3.0
@@
-13,6
+14,12
@@
export interface ProcessLogs {
[logType: string]: string[];
}
[logType: string]: string[];
}
-export const getProcessLogs = ({ selectedFilter, logs }: ProcessLogsPanel) => {
+export const getProcess
Panel
Logs = ({ selectedFilter, logs }: ProcessLogsPanel) => {
return logs[selectedFilter];
};
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;
+};