Skip to content

Commit c84640a

Browse files
committed
Disable webhook docs for now
1 parent 71d0b00 commit c84640a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/UnisonShare/Page/ProjectSettingsPage.elm

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -575,12 +575,13 @@ viewWebhooks session model =
575575
divider =
576576
Divider.divider |> Divider.small |> Divider.view
577577

578-
examplesButton =
579-
Button.iconThenLabel ShowWebhookExamplesModal Icon.docs "Webhook example docs"
580-
|> Button.small
581-
|> Button.subdued
582-
|> Button.view
583-
578+
{-
579+
examplesButton =
580+
Button.iconThenLabel ShowWebhookExamplesModal Icon.docs "Webhook example docs"
581+
|> Button.small
582+
|> Button.subdued
583+
|> Button.view
584+
-}
584585
addButton =
585586
Button.iconThenLabel ShowAddWebhookModal Icon.plus "Add a webhook"
586587
|> Button.small
@@ -590,15 +591,15 @@ viewWebhooks session model =
590591
case model.webhooks of
591592
Success webhooks ->
592593
if List.isEmpty webhooks then
593-
[ header [ class "project-settings_card_header" ] [ h2 [] [ text "Webhooks" ], div [ class "webhook-buttons" ] [ examplesButton, addButton ] ]
594+
[ header [ class "project-settings_card_header" ] [ h2 [] [ text "Webhooks" ], div [ class "webhook-buttons" ] [ addButton ] ]
594595
, div [ class "list_empty-state" ]
595596
[ div [ class "list_empty-state_text" ]
596597
[ Icon.view Icon.wireframeGlobe, text "You haven't set up any webhooks yet" ]
597598
]
598599
]
599600

600601
else
601-
[ header [ class "project-settings_card_header" ] [ h2 [] [ text "Webhooks" ], div [ class "webhook-buttons" ] [ examplesButton, addButton ] ]
602+
[ header [ class "project-settings_card_header" ] [ h2 [] [ text "Webhooks" ], div [ class "webhook-buttons" ] [ addButton ] ]
602603
, div [ class "webhooks" ] (webhooks |> List.map viewWebhook |> List.intersperse divider)
603604
]
604605

0 commit comments

Comments
 (0)