Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7858a5a

Browse files
committed
Add docs
1 parent013ccff commit7858a5a

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
importtype{Interpolation,Theme}from"@emotion/react";
2+
importButtonfrom"@mui/material/Button";
23
importCardfrom"@mui/material/Card";
34
importDividerfrom"@mui/material/Divider";
45
importListfrom"@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
importOptionsTablefrom"../OptionsTable";
@@ -175,15 +177,43 @@ const EventsView: FC<EventsViewProps> = ({
175177
<Stackspacing={4}>
176178
{availableMethods.includes("smtp")&&
177179
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+
>
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-
<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+
>
187217
SMTP notifications are enabled, but no smarthost has been
188218
configured.
189219
</Alert>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp