From 61da558a5d563805bb767cb6c6ae3be42a8c48fe Mon Sep 17 00:00:00 2001 From: Nathanael Farley Date: Fri, 26 Oct 2018 15:46:36 +0100 Subject: [PATCH] Added explanatory webhook text to UI. (#10782) * Added explanatory webhook text to UI. * Made new webhook API info translateable. --- website/client/components/settings/api.vue | 1 + website/common/locales/en/settings.json | 1 + 2 files changed, 2 insertions(+) diff --git a/website/client/components/settings/api.vue b/website/client/components/settings/api.vue index 5b6627da14..291c3640f8 100644 --- a/website/client/components/settings/api.vue +++ b/website/client/components/settings/api.vue @@ -38,6 +38,7 @@ .col-6 h2 {{ $t('webhooks') }} + p(v-html="$t('webhooksInfo')") table.table.table-striped thead(v-if='user.webhooks.length') tr diff --git a/website/common/locales/en/settings.json b/website/common/locales/en/settings.json index 789294db6e..f6d6006e04 100644 --- a/website/common/locales/en/settings.json +++ b/website/common/locales/en/settings.json @@ -157,6 +157,7 @@ "generate": "Generate", "getCodes": "Get Codes", "webhooks": "Webhooks", + "webhooksInfo": "Habitica provides webhooks so that when certain actions occur in your account, information can be sent to a script on another website. You can specify those scripts here. Be careful with this feature because specifying an incorrect URL can cause errors or slowness in Habitica. For more information, see the wiki's Webhooks page.", "enabled": "Enabled", "webhookURL": "Webhook URL", "invalidUrl": "invalid url",