[arvados-workbench2] updated: 2.4.0-198-geab690e6
git repository hosting
git at public.arvados.org
Mon Sep 5 07:05:00 UTC 2022
Summary of changes:
.../projects-tree-picker/generic-projects-tree-picker.tsx | 2 +-
src/views/run-process-panel/inputs/file-input.tsx | 1 +
src/views/run-process-panel/inputs/project-input.tsx | 5 ++++-
3 files changed, 6 insertions(+), 2 deletions(-)
via eab690e6ffa57a59f86dbc4e532de032f93941bd (commit)
from 59171e2cf2ce2740825be7b19d580a2bfa0081f5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit eab690e6ffa57a59f86dbc4e532de032f93941bd
Author: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
Date: Mon Sep 5 08:54:50 2022 +0200
18692: File and project picker display changes
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
diff --git a/src/views-components/projects-tree-picker/generic-projects-tree-picker.tsx b/src/views-components/projects-tree-picker/generic-projects-tree-picker.tsx
index aa9fb60b..d1c6fc60 100644
--- a/src/views-components/projects-tree-picker/generic-projects-tree-picker.tsx
+++ b/src/views-components/projects-tree-picker/generic-projects-tree-picker.tsx
@@ -66,7 +66,7 @@ const mapDispatchToProps = (dispatch: Dispatch, { loadRootItem, includeCollectio
dispatch<any>(
data.kind === ResourceKind.COLLECTION
? loadCollection(id, pickerId)
- : loadProject({ id, pickerId, includeCollections, includeFiles })
+ : loadProject({ id, pickerId, includeCollections, includeFiles, options })
);
} else if (!('type' in data) && loadRootItem) {
loadRootItem(item as TreeItem<ProjectsTreePickerRootItem>, pickerId, includeCollections, includeFiles, options);
diff --git a/src/views/run-process-panel/inputs/file-input.tsx b/src/views/run-process-panel/inputs/file-input.tsx
index c2e17c95..a56d45f8 100644
--- a/src/views/run-process-panel/inputs/file-input.tsx
+++ b/src/views/run-process-panel/inputs/file-input.tsx
@@ -78,6 +78,7 @@ const FileInputComponent = connect()(
}
openDialog = () => {
+ this.componentDidMount();
this.setState({ open: true });
}
diff --git a/src/views/run-process-panel/inputs/project-input.tsx b/src/views/run-process-panel/inputs/project-input.tsx
index ea5651e3..0c962ed8 100644
--- a/src/views/run-process-panel/inputs/project-input.tsx
+++ b/src/views/run-process-panel/inputs/project-input.tsx
@@ -59,10 +59,12 @@ export const ProjectInputComponent = connect(mapStateToProps)(
open: false,
};
- render() {
+ componentDidMount() {
this.props.dispatch<any>(
initProjectsTreePicker(this.props.commandInput.id));
+ }
+ render() {
return <>
{this.renderInput()}
{this.renderDialog()}
@@ -70,6 +72,7 @@ export const ProjectInputComponent = connect(mapStateToProps)(
}
openDialog = () => {
+ this.componentDidMount();
this.setState({ open: true });
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list