Skip to content

Commit

Permalink
link directly to webhook section in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Oct 9, 2023
1 parent bb88198 commit b77b888
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/app/escalation-policies/PolicyStepForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function PolicyStepForm(props) {
mapValue={getTargetsByType('chanWebhook')}
mapOnChangeValue={setTargetType('chanWebhook')}
hint={
<AppLink newTab to='/docs'>
<AppLink newTab to='/docs#webhooks'>
Webhook Documentation
</AppLink>
}
Expand Down
6 changes: 6 additions & 0 deletions web/src/app/users/UserContactMethodForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import { useConfigValue } from '../util/RequireConfig'
import TelTextField from '../util/TelTextField'
import { FieldError } from '../util/errutil'
import AppLink from '../util/AppLink'

type Value = {
name: string
Expand Down Expand Up @@ -73,6 +74,11 @@ function renderURLField(edit: boolean): JSX.Element {
type='url'
component={TextField}
disabled={edit}
hint={
<AppLink newTab to='/docs#webhooks'>
Webhook Documentation
</AppLink>
}
/>
)
}
Expand Down

0 comments on commit b77b888

Please sign in to comment.