mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: Register dynamic plugins and add feature checks (#14650)
* chore: Register dynamic plugins and add feature checks * Disable pylint warning
This commit is contained in:
@@ -274,15 +274,17 @@ class SupersetAppInitializer:
|
||||
category="",
|
||||
category_icon="",
|
||||
)
|
||||
if feature_flag_manager.is_feature_enabled("DYNAMIC_PLUGINS"):
|
||||
appbuilder.add_view(
|
||||
DynamicPluginsView,
|
||||
"Plugins",
|
||||
label=__("Plugins"),
|
||||
category="Manage",
|
||||
category_label=__("Manage"),
|
||||
icon="fa-puzzle-piece",
|
||||
)
|
||||
appbuilder.add_view(
|
||||
DynamicPluginsView,
|
||||
"Plugins",
|
||||
label=__("Plugins"),
|
||||
category="Manage",
|
||||
category_label=__("Manage"),
|
||||
icon="fa-puzzle-piece",
|
||||
menu_cond=lambda: feature_flag_manager.is_feature_enabled(
|
||||
"DYNAMIC_PLUGINS"
|
||||
),
|
||||
)
|
||||
appbuilder.add_view(
|
||||
CssTemplateModelView,
|
||||
"CSS Templates",
|
||||
|
||||
Reference in New Issue
Block a user