Skip to content

Commit 7858a5a

Browse files
committed
Add docs
1 parent 013ccff commit 7858a5a

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

site/src/pages/DeploySettingsPage/NotificationsPage/NotificationsPage.tsx

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Interpolation, Theme } from "@emotion/react";
2+
import Button from "@mui/material/Button";
23
import Card from "@mui/material/Card";
34
import Divider from "@mui/material/Divider";
45
import List from "@mui/material/List";
@@ -31,6 +32,7 @@ import {
3132
} from "modules/notifications/utils";
3233
import { Section } from "pages/UserSettingsPage/Section";
3334
import { deploymentGroupHasParent } from "utils/deployOptions";
35+
import { docs } from "utils/docs";
3436
import { pageTitle } from "utils/page";
3537
import { useDeploySettings } from "../DeploySettingsLayout";
3638
import OptionsTable from "../OptionsTable";
@@ -175,15 +177,43 @@ const EventsView: FC<EventsViewProps> = ({
175177
<Stack spacing={4}>
176178
{availableMethods.includes("smtp") &&
177179
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+
>
179195
Webhook notifications are enabled, but no endpoint has been
180196
configured.
181197
</Alert>
182198
)}
183199

184200
{availableMethods.includes("smtp") &&
185201
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+
>
187217
SMTP notifications are enabled, but no smarthost has been
188218
configured.
189219
</Alert>

0 commit comments

Comments
 (0)