0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 02:28:18 -05:00

Merge pull request #2645 from penpot/palba-webhooks-flag

🎉 Add flag for enabling webhooks
This commit is contained in:
Andrey Antukh 2022-12-12 13:47:33 +01:00 committed by GitHub
commit f2fe1dd6f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

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

View file

@ -324,7 +324,8 @@
[:ul.dropdown.options-dropdown [:ul.dropdown.options-dropdown
[:li {:on-click go-members :data-test "team-members"} (tr "labels.members")] [: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-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")] [:li {:on-click go-settings :data-test "team-settings"} (tr "labels.settings")]
[:hr] [:hr]
(when can-rename? (when can-rename?

View file

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