Skip to content

Commit

Permalink
update import antd tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Lily Kuang committed Nov 25, 2020
1 parent dd2bf6f commit 4beb1b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion superset-frontend/src/views/CRUD/alert/AlertList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { t, styled } from '@superset-ui/core';
import ActionsBar, { ActionProps } from 'src/components/ListView/ActionsBar';
import Button from 'src/components/Button';
import Icon, { IconName } from 'src/components/Icon';
import Tooltip from 'src/common/components/Tooltip';
import { Tooltip } from 'src/common/components/Tooltip';
import { Switch } from 'src/common/components/Switch';
import FacePile from 'src/components/FacePile';
import ListView from 'src/components/ListView';
Expand Down
5 changes: 4 additions & 1 deletion superset/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def init_views(self) -> None:
AlertLogModelView,
AlertModelView,
AlertObservationModelView,
AlertReportModelView,
)
from superset.views.annotations import (
AnnotationLayerModelView,
Expand Down Expand Up @@ -418,8 +419,10 @@ def init_views(self) -> None:
category_label=__("Manage"),
icon="fa-exclamation-triangle",
)
appbuilder.add_view_no_menu(AlertObservationModelView)
appbuilder.add_view_no_menu(AlertLogModelView)
appbuilder.add_view_no_menu(AlertObservationModelView)
if feature_flag_manager.is_feature_enabled("SIP_34_QUERY_SEARCH_UI"):
appbuilder.add_view_no_menu(AlertReportModelView)

#
# Conditionally add Access Request Model View
Expand Down
2 changes: 1 addition & 1 deletion superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ class CeleryConfig: # pylint: disable=too-few-public-methods
# Enable / disable Alerts, where users can define custom SQL that
# will send emails with screenshots of charts or dashboards periodically
# if it meets the criteria
ENABLE_ALERTS = True
ENABLE_ALERTS = False

# Slack API token for the superset reports
SLACK_API_TOKEN = None
Expand Down

0 comments on commit 4beb1b3

Please sign in to comment.