|
1 | 1 | import type { Interpolation, Theme } from "@emotion/react";
|
| 2 | +import Button from "@mui/material/Button"; |
2 | 3 | import Card from "@mui/material/Card";
|
3 | 4 | import Divider from "@mui/material/Divider";
|
4 | 5 | import List from "@mui/material/List";
|
@@ -31,6 +32,7 @@ import {
|
31 | 32 | } from "modules/notifications/utils";
|
32 | 33 | import { Section } from "pages/UserSettingsPage/Section";
|
33 | 34 | import { deploymentGroupHasParent } from "utils/deployOptions";
|
| 35 | +import { docs } from "utils/docs"; |
34 | 36 | import { pageTitle } from "utils/page";
|
35 | 37 | import { useDeploySettings } from "../DeploySettingsLayout";
|
36 | 38 | import OptionsTable from "../OptionsTable";
|
@@ -175,15 +177,43 @@ const EventsView: FC<EventsViewProps> = ({
|
175 | 177 | <Stack spacing={4}>
|
176 | 178 | {availableMethods.includes("smtp") &&
|
177 | 179 | deploymentValues.notifications?.webhook.endpoint === "" && (
|
178 |
| - <Alert severity="warning"> |
| 180 | + <Alert |
| 181 | + severity="warning" |
| 182 | + actions={ |
| 183 | + <Button |
| 184 | + variant="text" |
| 185 | + size="small" |
| 186 | + component="a" |
| 187 | + target="_blank" |
| 188 | + rel="noreferrer" |
| 189 | + href={docs("/cli/server#--notifications-webhook-endpoint")} |
| 190 | + > |
| 191 | + Read the docs |
| 192 | + </Button> |
| 193 | + } |
| 194 | + > |
179 | 195 | Webhook notifications are enabled, but no endpoint has been
|
180 | 196 | configured.
|
181 | 197 | </Alert>
|
182 | 198 | )}
|
183 | 199 |
|
184 | 200 | {availableMethods.includes("smtp") &&
|
185 | 201 | deploymentValues.notifications?.email.smarthost === "" && (
|
186 |
| - <Alert severity="warning"> |
| 202 | + <Alert |
| 203 | + severity="warning" |
| 204 | + actions={ |
| 205 | + <Button |
| 206 | + variant="text" |
| 207 | + size="small" |
| 208 | + component="a" |
| 209 | + target="_blank" |
| 210 | + rel="noreferrer" |
| 211 | + href={docs("/cli/server#--notifications-email-smarthost")} |
| 212 | + > |
| 213 | + Read the docs |
| 214 | + </Button> |
| 215 | + } |
| 216 | + > |
187 | 217 | SMTP notifications are enabled, but no smarthost has been
|
188 | 218 | configured.
|
189 | 219 | </Alert>
|
|
0 commit comments