[ARVADOS-WORKBENCH2] updated: 1.1.4-305-gdd4831e

Git user git at public.curoverse.com
Tue Jul 17 05:16:26 EDT 2018


Summary of changes:
 src/views-components/context-menu/action-sets/empty-action-set.ts | 8 --------
 src/views-components/context-menu/context-menu.tsx                | 3 +--
 2 files changed, 1 insertion(+), 10 deletions(-)
 delete mode 100644 src/views-components/context-menu/action-sets/empty-action-set.ts

       via  dd4831ea08257f8891a9822fd29ad9b2dba1be5f (commit)
      from  9320734bb358e7148918da13e81ebba59ecf16e8 (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 dd4831ea08257f8891a9822fd29ad9b2dba1be5f
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Tue Jul 17 11:16:00 2018 +0200

    Remove emptyIconSet
    
    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/action-sets/empty-action-set.ts b/src/views-components/context-menu/action-sets/empty-action-set.ts
deleted file mode 100644
index 9793484..0000000
--- a/src/views-components/context-menu/action-sets/empty-action-set.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright (C) The Arvados Authors. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0
-
-import { ContextMenuActionSet } from "../context-menu-action-set";
-
-export const emptyActionSet: ContextMenuActionSet  = [];
-
diff --git a/src/views-components/context-menu/context-menu.tsx b/src/views-components/context-menu/context-menu.tsx
index 3942008..cc103c4 100644
--- a/src/views-components/context-menu/context-menu.tsx
+++ b/src/views-components/context-menu/context-menu.tsx
@@ -9,7 +9,6 @@ import ContextMenu, { ContextMenuProps, ContextMenuItem } from "../../components
 import { createAnchorAt } from "../../components/popover/helpers";
 import { ContextMenuResource } from "../../store/context-menu/context-menu-reducer";
 import { ContextMenuActionSet, ContextMenuAction } from "./context-menu-action-set";
-import { emptyActionSet } from "./action-sets/empty-action-set";
 
 type DataProps = Pick<ContextMenuProps, "anchorEl" | "items"> & { resource?: ContextMenuResource };
 const mapStateToProps = (state: RootState): DataProps => {
@@ -51,6 +50,6 @@ export const addMenuActionSet = (name: string, itemSet: ContextMenuActionSet) =>
 };
 
 const getMenuActionSet = (resource?: ContextMenuResource): ContextMenuActionSet => {
-    return resource ? menuActionSets.get(resource.kind) || emptyActionSet : emptyActionSet;
+    return resource ? menuActionSets.get(resource.kind) || [] : [];
 };
 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list