mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: make CTA text in Alerts & Reports mails configurable (#19779)
This commit is contained in:
@@ -1259,6 +1259,9 @@ ALERT_REPORTS_QUERY_EXECUTION_MAX_TRIES = 1
|
||||
# A custom prefix to use on all Alerts & Reports emails
|
||||
EMAIL_REPORTS_SUBJECT_PREFIX = "[Report] "
|
||||
|
||||
# The text for call-to-action link in Alerts & Reports emails
|
||||
EMAIL_REPORTS_CTA = "Explore in Superset"
|
||||
|
||||
# Slack API token for the superset reports, either string or callable
|
||||
SLACK_API_TOKEN: Optional[Union[Callable[[], str], str]] = None
|
||||
SLACK_PROXY = None
|
||||
|
||||
@@ -128,7 +128,7 @@ class EmailNotification(BaseNotification): # pylint: disable=too-few-public-met
|
||||
else:
|
||||
html_table = ""
|
||||
|
||||
call_to_action = __("Explore in Superset")
|
||||
call_to_action = __(app.config["EMAIL_REPORTS_CTA"])
|
||||
url = (
|
||||
modify_url_query(self._content.url, standalone="0")
|
||||
if self._content.url is not None
|
||||
|
||||
Reference in New Issue
Block a user