From 97fab5d2ecd630e1b5f40b60bbe0d80c5d402ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8jberg?= Date: Fri, 24 Oct 2025 13:02:29 -0400 Subject: [PATCH] Enable webhook docs --- src/UnisonShare/Page/ProjectSettingsPage.elm | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/UnisonShare/Page/ProjectSettingsPage.elm b/src/UnisonShare/Page/ProjectSettingsPage.elm index 742e40d5..ed3334b5 100644 --- a/src/UnisonShare/Page/ProjectSettingsPage.elm +++ b/src/UnisonShare/Page/ProjectSettingsPage.elm @@ -575,13 +575,12 @@ viewWebhooks session model = divider = Divider.divider |> Divider.small |> Divider.view - {- - examplesButton = - Button.iconThenLabel ShowWebhookExamplesModal Icon.docs "Webhook example docs" - |> Button.small - |> Button.subdued - |> Button.view - -} + examplesButton = + Button.iconThenLabel ShowWebhookExamplesModal Icon.docs "Webhook example docs" + |> Button.small + |> Button.subdued + |> Button.view + addButton = Button.iconThenLabel ShowAddWebhookModal Icon.plus "Add a webhook" |> Button.small @@ -591,7 +590,7 @@ viewWebhooks session model = case model.webhooks of Success webhooks -> if List.isEmpty webhooks then - [ header [ class "project-settings_card_header" ] [ h2 [] [ text "Webhooks" ], div [ class "webhook-buttons" ] [ addButton ] ] + [ header [ class "project-settings_card_header" ] [ h2 [] [ text "Webhooks" ], div [ class "webhook-buttons" ] [ examplesButton, addButton ] ] , div [ class "list_empty-state" ] [ div [ class "list_empty-state_text" ] [ Icon.view Icon.wireframeGlobe, text "You haven't set up any webhooks yet" ] @@ -599,7 +598,7 @@ viewWebhooks session model = ] else - [ header [ class "project-settings_card_header" ] [ h2 [] [ text "Webhooks" ], div [ class "webhook-buttons" ] [ addButton ] ] + [ header [ class "project-settings_card_header" ] [ h2 [] [ text "Webhooks" ], div [ class "webhook-buttons" ] [ examplesButton, addButton ] ] , div [ class "webhooks" ] (webhooks |> List.map viewWebhook |> List.intersperse divider) ]