Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions airflow-core/docs/howto/customize-ui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ To add static alert messages that remain constant until the webserver is restart

.. code-block:: python

from airflow.www.utils import UIAlert
from airflow.api_fastapi.common.types import UIAlert

DASHBOARD_UIALERTS = [
UIAlert("Welcome to Airflow"),
UIAlert("Welcome to Airflow", category="info"),
]

3. Restart the Airflow webserver, and you should now see the alert message displayed on the dashboard.
Expand Down