|
1 | 1 | importtype{Interpolation,Theme}from"@emotion/react"; |
| 2 | +importButtonfrom"@mui/material/Button"; |
2 | 3 | importCardfrom"@mui/material/Card"; |
3 | 4 | importDividerfrom"@mui/material/Divider"; |
4 | 5 | importListfrom"@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 | importOptionsTablefrom"../OptionsTable"; |
@@ -175,15 +177,43 @@ const EventsView: FC<EventsViewProps> = ({ |
175 | 177 | <Stackspacing={4}> |
176 | 178 | {availableMethods.includes("smtp")&& |
177 | 179 | deploymentValues.notifications?.webhook.endpoint===""&&( |
178 | | -<Alertseverity="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 | | -<Alertseverity="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> |
|