Added explanatory webhook text to UI. (#10782)

* Added explanatory webhook text to UI.

* Made new webhook API info translateable.
This commit is contained in:
Nathanael Farley
2018-10-26 15:46:36 +01:00
committed by Matteo Pagliazzi
parent 490531cc76
commit 61da558a5d
2 changed files with 2 additions and 0 deletions

View File

@@ -38,6 +38,7 @@
.col-6 .col-6
h2 {{ $t('webhooks') }} h2 {{ $t('webhooks') }}
p(v-html="$t('webhooksInfo')")
table.table.table-striped table.table.table-striped
thead(v-if='user.webhooks.length') thead(v-if='user.webhooks.length')
tr tr

View File

@@ -157,6 +157,7 @@
"generate": "Generate", "generate": "Generate",
"getCodes": "Get Codes", "getCodes": "Get Codes",
"webhooks": "Webhooks", "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 <a target=\"_blank\" href=\"https://habitica.wikia.com/wiki/Webhooks\">Webhooks</a> page.",
"enabled": "Enabled", "enabled": "Enabled",
"webhookURL": "Webhook URL", "webhookURL": "Webhook URL",
"invalidUrl": "invalid url", "invalidUrl": "invalid url",