You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2020/09/23 02:33:03 UTC

[incubator-superset] branch master updated: Bring back import menu (#11007)

This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new d992c30  Bring back import menu (#11007)
d992c30 is described below

commit d992c306c2255b796f676d48dd1f61a622fac7b0
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Tue Sep 22 19:32:44 2020 -0700

    Bring back import menu (#11007)
---
 superset-frontend/src/components/Menu/Menu.tsx | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/superset-frontend/src/components/Menu/Menu.tsx b/superset-frontend/src/components/Menu/Menu.tsx
index 6cc1c83..73f6d8d 100644
--- a/superset-frontend/src/components/Menu/Menu.tsx
+++ b/superset-frontend/src/components/Menu/Menu.tsx
@@ -277,11 +277,6 @@ export default function MenuWrapper({ data }: MenuProps) {
     Manage: true,
   };
 
-  // Menu items that should be ignored
-  const ignore = {
-    'Import Dashboards': true,
-  };
-
   // Cycle through menu.menu to build out cleanedMenu and settings
   const cleanedMenu: MenuObjectProps[] = [];
   const settings: MenuObjectProps[] = [];
@@ -301,10 +296,7 @@ export default function MenuWrapper({ data }: MenuProps) {
       item.childs.forEach((child: MenuObjectChildProps | string) => {
         if (typeof child === 'string') {
           children.push(child);
-        } else if (
-          (child as MenuObjectChildProps).label &&
-          !ignore.hasOwnProperty(child.label)
-        ) {
+        } else if ((child as MenuObjectChildProps).label) {
           children.push(child);
         }
       });