[ARVADOS-WORKBENCH2] updated: 1.1.4-273-g85e82d4
Git user
git at public.curoverse.com
Thu Jul 12 05:58:21 EDT 2018
Summary of changes:
src/store/side-panel/side-panel-reducer.ts | 21 +++++++++++++++------
src/views/workbench/workbench.tsx | 5 ++++-
2 files changed, 19 insertions(+), 7 deletions(-)
via 85e82d4c8a48aafeefa0b8b48a372e91faac64d0 (commit)
via 10bc5987612b523f17cf5eb3918444de2f6a2562 (commit)
from 90aa25eab8c69ff908873edc72293c8feb4847bf (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 85e82d4c8a48aafeefa0b8b48a372e91faac64d0
Merge: 90aa25e 10bc598
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date: Thu Jul 12 11:57:56 2018 +0200
Merge branch '13750-project-item-remains-active'
refs #13750
Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
commit 10bc5987612b523f17cf5eb3918444de2f6a2562
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date: Thu Jul 12 11:57:03 2018 +0200
Redirect on side panel item activation, activate projects item on project tree item activation
Feature #13750
Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
diff --git a/src/store/side-panel/side-panel-reducer.ts b/src/store/side-panel/side-panel-reducer.ts
index 9fc5df1..ca26eeb 100644
--- a/src/store/side-panel/side-panel-reducer.ts
+++ b/src/store/side-panel/side-panel-reducer.ts
@@ -35,9 +35,18 @@ const sidePanelReducer = (state: SidePanelState = sidePanelData, action: SidePan
}
};
+export enum SidePanelIdentifiers {
+ Projects = "Projects",
+ SharedWithMe = "SharedWithMe",
+ Workflows = "Workflows",
+ RecentOpen = "RecentOpen",
+ Favourites = "Favourites",
+ Trash = "Trash"
+}
+
export const sidePanelData = [
{
- id: "1",
+ id: SidePanelIdentifiers.Projects,
name: "Projects",
icon: "fas fa-th fa-fw",
open: false,
@@ -46,31 +55,31 @@ export const sidePanelData = [
openAble: true
},
{
- id: "2",
+ id: SidePanelIdentifiers.SharedWithMe,
name: "Shared with me",
icon: "fas fa-users fa-fw",
active: false,
},
{
- id: "3",
+ id: SidePanelIdentifiers.Workflows,
name: "Workflows",
icon: "fas fa-cogs fa-fw",
active: false,
},
{
- id: "4",
+ id: SidePanelIdentifiers.RecentOpen,
name: "Recent open",
icon: "icon-time fa-fw",
active: false,
},
{
- id: "5",
+ id: SidePanelIdentifiers.Favourites,
name: "Favorites",
icon: "fas fa-star fa-fw",
active: false,
},
{
- id: "6",
+ id: SidePanelIdentifiers.Trash,
name: "Trash",
icon: "fas fa-trash-alt fa-fw",
active: false,
diff --git a/src/views/workbench/workbench.tsx b/src/views/workbench/workbench.tsx
index 6ad4d24..e7a8ae3 100644
--- a/src/views/workbench/workbench.tsx
+++ b/src/views/workbench/workbench.tsx
@@ -34,6 +34,7 @@ import { authService } from '../../services/services';
import detailsPanelActions, { loadDetails } from "../../store/details-panel/details-panel-action";
import { ResourceKind } from '../../models/kinds';
+import { SidePanelIdentifiers } from '../../store/side-panel/side-panel-reducer';
const drawerWidth = 240;
const appBarHeight = 100;
@@ -172,6 +173,7 @@ class Workbench extends React.Component<WorkbenchProps, WorkbenchState> {
toggleSidePanelActive = (itemId: string) => {
this.props.dispatch(sidePanelActions.TOGGLE_SIDE_PANEL_ITEM_ACTIVE(itemId));
this.props.dispatch(projectActions.RESET_PROJECT_TREE_ACTIVITY(itemId));
+ this.props.dispatch(push("/"));
}
handleCreationDialogOpen = (itemUuid: string) => {
@@ -239,7 +241,8 @@ class Workbench extends React.Component<WorkbenchProps, WorkbenchState> {
toggleActive={itemId => {
this.props.dispatch<any>(setProjectItem(itemId, ItemMode.ACTIVE));
this.props.dispatch<any>(loadDetails(itemId, ResourceKind.Project));
- }}/>
+ this.props.dispatch<any>(sidePanelActions.TOGGLE_SIDE_PANEL_ITEM_ACTIVE(SidePanelIdentifiers.Projects));
+ }} />
</SidePanel>
</Drawer>}
<main className={classes.contentWrapper}>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list