Browse Source

[core] Exclude from other apps all the apps with menu_index = -1

Enrico Berti 9 năm trước cách đây
mục cha
commit
2e2d799b78

+ 1 - 1
desktop/core/src/desktop/views.py

@@ -373,7 +373,7 @@ def commonheader(title, section, user, padding="90px", skip_topbar=False):
     for app in apps:
       if app.display_name not in [
           'beeswax', 'impala', 'pig', 'jobsub', 'jobbrowser', 'metastore', 'hbase', 'sqoop', 'oozie', 'filebrowser',
-          'useradmin', 'search', 'help', 'about', 'zookeeper', 'proxy', 'rdbms', 'spark', 'indexer', 'security', 'notebook']:
+          'useradmin', 'search', 'help', 'about', 'zookeeper', 'proxy', 'rdbms', 'spark', 'indexer', 'security', 'notebook'] and app.menu_index != -1:
         other_apps.append(app)
       if section == app.display_name:
         current_app = app

+ 1 - 1
desktop/libs/metadata/src/metadata/settings.py

@@ -18,5 +18,5 @@
 DJANGO_APPS = [ "metadata" ]
 NICE_NAME = "Metadata"
 REQUIRES_HADOOP = False
-
+MENU_INDEX = -1
 IS_URL_NAMESPACED = True