Skip to content

Commit b41e431

Browse files
authored
Merge pull request #126 from unisoncomputing/enable-webhook-docs
Enable webhook docs
2 parents c84640a + 97fab5d commit b41e431

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/UnisonShare/Page/ProjectSettingsPage.elm

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

578-
{-
579-
examplesButton =
580-
Button.iconThenLabel ShowWebhookExamplesModal Icon.docs "Webhook example docs"
581-
|> Button.small
582-
|> Button.subdued
583-
|> Button.view
584-
-}
578+
examplesButton =
579+
Button.iconThenLabel ShowWebhookExamplesModal Icon.docs "Webhook example docs"
580+
|> Button.small
581+
|> Button.subdued
582+
|> Button.view
583+
585584
addButton =
586585
Button.iconThenLabel ShowAddWebhookModal Icon.plus "Add a webhook"
587586
|> Button.small
@@ -591,15 +590,15 @@ viewWebhooks session model =
591590
case model.webhooks of
592591
Success webhooks ->
593592
if List.isEmpty webhooks then
594-
[ header [ class "project-settings_card_header" ] [ h2 [] [ text "Webhooks" ], div [ class "webhook-buttons" ] [ addButton ] ]
593+
[ header [ class "project-settings_card_header" ] [ h2 [] [ text "Webhooks" ], div [ class "webhook-buttons" ] [ examplesButton, addButton ] ]
595594
, div [ class "list_empty-state" ]
596595
[ div [ class "list_empty-state_text" ]
597596
[ Icon.view Icon.wireframeGlobe, text "You haven't set up any webhooks yet" ]
598597
]
599598
]
600599

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

0 commit comments

Comments
 (0)