[ARVADOS-WORKBENCH2] updated: 1.1.4-298-g090241b

Git user git at public.curoverse.com
Mon Jul 16 02:48:34 EDT 2018


Summary of changes:
 src/views-components/context-menu/context-menu.tsx | 12 ++++++------
 src/views-components/context-menu/index.ts         | 10 +++++-----
 2 files changed, 11 insertions(+), 11 deletions(-)

       via  090241b266abe8558664a85b7e8e1b93c9ad60d0 (commit)
      from  0d71d490e24d2f1dae33360f194259bb597f2799 (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 090241b266abe8558664a85b7e8e1b93c9ad60d0
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Mon Jul 16 08:48:19 2018 +0200

    Unify naming
    
    Feature #13805
    
    Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>

diff --git a/src/views-components/context-menu/context-menu.tsx b/src/views-components/context-menu/context-menu.tsx
index eb96504..3942008 100644
--- a/src/views-components/context-menu/context-menu.tsx
+++ b/src/views-components/context-menu/context-menu.tsx
@@ -16,7 +16,7 @@ const mapStateToProps = (state: RootState): DataProps => {
     const { position, resource } = state.contextMenu;
     return {
         anchorEl: resource ? createAnchorAt(position) : undefined,
-        items: getMenuItemSet(resource),
+        items: getMenuActionSet(resource),
         resource
     };
 };
@@ -44,13 +44,13 @@ const mergeProps = ({ resource, ...dataProps }: DataProps, actionProps: ActionPr
 
 export const ContextMenuHOC = connect(mapStateToProps, mapDispatchToProps, mergeProps)(ContextMenu);
 
-const menuItemSets = new Map<string, ContextMenuActionSet>();
+const menuActionSets = new Map<string, ContextMenuActionSet>();
 
-export const addMenuItemsSet = (name: string, itemSet: ContextMenuActionSet) => {
-    menuItemSets.set(name, itemSet);
+export const addMenuActionSet = (name: string, itemSet: ContextMenuActionSet) => {
+    menuActionSets.set(name, itemSet);
 };
 
-const getMenuItemSet = (resource?: ContextMenuResource): ContextMenuActionSet => {
-    return resource ? menuItemSets.get(resource.kind) || emptyActionSet : emptyActionSet;
+const getMenuActionSet = (resource?: ContextMenuResource): ContextMenuActionSet => {
+    return resource ? menuActionSets.get(resource.kind) || emptyActionSet : emptyActionSet;
 };
 
diff --git a/src/views-components/context-menu/index.ts b/src/views-components/context-menu/index.ts
index c4eef70..6059e8f 100644
--- a/src/views-components/context-menu/index.ts
+++ b/src/views-components/context-menu/index.ts
@@ -2,9 +2,9 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { ContextMenuHOC, addMenuItemsSet } from "./context-menu";
-import { projectItemSet } from "./item-sets/project-item-set";
-import { rootProjectItemSet } from "./item-sets/root-project-item-set";
+import { ContextMenuHOC, addMenuActionSet } from "./context-menu";
+import { projectActionSet } from "./action-sets/project-action-set";
+import { rootProjectActionSet } from "./action-sets/root-project-action-set";
 
 export default ContextMenuHOC;
 
@@ -13,5 +13,5 @@ export enum ContextMenuKind {
     Project = "Project"
 }
 
-addMenuItemsSet(ContextMenuKind.RootProject, rootProjectItemSet);
-addMenuItemsSet(ContextMenuKind.Project, projectItemSet);
\ No newline at end of file
+addMenuActionSet(ContextMenuKind.RootProject, rootProjectActionSet);
+addMenuActionSet(ContextMenuKind.Project, projectActionSet);
\ No newline at end of file

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list