0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

🎉 Add flag for enabling webhooks

This commit is contained in:
Pablo Alba 2022-12-09 13:00:23 +01:00
parent 415a3cad7b
commit d283c6418e
3 changed files with 7 additions and 4 deletions

View file

@ -12,7 +12,8 @@
(def default
"A common flags that affects both: backend and frontend."
[:enable-registration
:enable-login])
:enable-login
:enable-webhooks])
(defn parse
[& flags]

View file

@ -324,7 +324,8 @@
[:ul.dropdown.options-dropdown
[:li {:on-click go-members :data-test "team-members"} (tr "labels.members")]
[:li {:on-click go-invitations :data-test "team-invitations"} (tr "labels.invitations")]
[:li {:on-click go-webhooks :data-test "team-webhooks"} (tr "labels.webhooks")]
(when (contains? @cf/flags :webhooks)
[:li {:on-click go-webhooks :data-test "team-webhooks"} (tr "labels.webhooks")])
[:li {:on-click go-settings :data-test "team-settings"} (tr "labels.settings")]
[:hr]
(when can-rename?

View file

@ -61,8 +61,9 @@
[:a {:on-click go-members} (tr "labels.members")]]
[:li {:class (when invitations-section? "active")}
[:a {:on-click go-invitations} (tr "labels.invitations")]]
[:li {:class (when webhooks-section? "active")}
[:a {:on-click go-webhooks} (tr "labels.webhooks")]]
(when (contains? @cfg/flags :webhooks)
[:li {:class (when webhooks-section? "active")}
[:a {:on-click go-webhooks} (tr "labels.webhooks")]])
[:li {:class (when settings-section? "active")}
[:a {:on-click go-settings} (tr "labels.settings")]]]]
[:div.dashboard-buttons