[ARVADOS-WORKBENCH2] updated: 1.1.4-244-g13eaae7
Git user
git at public.curoverse.com
Tue Jul 10 08:47:15 EDT 2018
Summary of changes:
src/views/workbench/workbench.tsx | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
via 13eaae7bc025eaf4765acea06b596ca88eb6ff05 (commit)
from 9004a33fe4598b83a8cce315cc28528b3d224a12 (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 13eaae7bc025eaf4765acea06b596ca88eb6ff05
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date: Tue Jul 10 14:46:45 2018 +0200
Load details while navigating using tree or breadcrumbs
Feature #13777
Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
diff --git a/src/views/workbench/workbench.tsx b/src/views/workbench/workbench.tsx
index fac9626..959025b 100644
--- a/src/views/workbench/workbench.tsx
+++ b/src/views/workbench/workbench.tsx
@@ -136,6 +136,7 @@ class Workbench extends React.Component<WorkbenchProps, WorkbenchState> {
mainAppBarActions: MainAppBarActionProps = {
onBreadcrumbClick: ({ itemId }: NavBreadcrumb) => {
this.props.dispatch<any>(setProjectItem(itemId, ItemMode.BOTH));
+ this.props.dispatch<any>(loadDetails(itemId, ResourceKind.Project));
},
onSearch: searchText => {
this.setState({ searchText });
@@ -190,7 +191,10 @@ class Workbench extends React.Component<WorkbenchProps, WorkbenchState> {
<ProjectTree
projects={this.props.projects}
toggleOpen={itemId => this.props.dispatch<any>(setProjectItem(itemId, ItemMode.OPEN))}
- toggleActive={itemId => this.props.dispatch<any>(setProjectItem(itemId, ItemMode.ACTIVE))}
+ toggleActive={itemId => {
+ this.props.dispatch<any>(setProjectItem(itemId, ItemMode.ACTIVE));
+ this.props.dispatch<any>(loadDetails(itemId, ResourceKind.Project));
+ }}
/>
</SidePanel>
</Drawer>}
@@ -200,7 +204,7 @@ class Workbench extends React.Component<WorkbenchProps, WorkbenchState> {
<Route path="/projects/:id" render={this.renderProjectPanel} />
</Switch>
</div>
- <DetailsPanel/>
+ <DetailsPanel />
</main>
</div>
);
@@ -208,11 +212,12 @@ class Workbench extends React.Component<WorkbenchProps, WorkbenchState> {
renderProjectPanel = (props: RouteComponentProps<{ id: string }>) => <ProjectPanel
onItemRouteChange={itemId => this.props.dispatch<any>(setProjectItem(itemId, ItemMode.ACTIVE))}
- onItemClick={item => {
+ onItemClick={item => {
this.props.dispatch<any>(loadDetails(item.uuid, item.kind as ResourceKind));
}}
onItemDoubleClick={item => {
this.props.dispatch<any>(setProjectItem(item.uuid, ItemMode.ACTIVE));
+ this.props.dispatch<any>(loadDetails(item.uuid, ResourceKind.Project));
}}
{...props} />
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list