aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-17 08:20:25 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-17 08:20:25 -0700
commit2a4c6cfcb5d9dc12faa3333b2e3999356294e2dc (patch)
tree7e5479f1ae19b3dd7548f056e63dd6209d35e2bc
parent61d82657e028e640ee88f11c0002bf66dd2a5924 (diff)
downloadtrackermap-web-2a4c6cfcb5d9dc12faa3333b2e3999356294e2dc.tar.gz
trackermap-web-2a4c6cfcb5d9dc12faa3333b2e3999356294e2dc.tar.bz2
trackermap-web-2a4c6cfcb5d9dc12faa3333b2e3999356294e2dc.zip
Telegram chat id attribute
-rw-r--r--modern/src/common/attributes/useUserAttributes.js4
-rw-r--r--web/l10n/en.json1
2 files changed, 5 insertions, 0 deletions
diff --git a/modern/src/common/attributes/useUserAttributes.js b/modern/src/common/attributes/useUserAttributes.js
index 56dee060..a100539e 100644
--- a/modern/src/common/attributes/useUserAttributes.js
+++ b/modern/src/common/attributes/useUserAttributes.js
@@ -1,6 +1,10 @@
import { useMemo } from 'react';
export default (t) => useMemo(() => ({
+ telegramChatId: {
+ name: t('attributeTelegramChatId'),
+ type: 'string',
+ },
'mail.smtp.host': {
name: t('attributeMailSmtpHost'),
type: 'string',
diff --git a/web/l10n/en.json b/web/l10n/en.json
index 16d02655..6269d9e2 100644
--- a/web/l10n/en.json
+++ b/web/l10n/en.json
@@ -106,6 +106,7 @@
"attributeWebLiveRouteLength": "Web: Live Route Length",
"attributeWebSelectZoom": "Web: Zoom On Select",
"attributeWebMaxZoom": "Web: Maximum Zoom",
+ "attributeTelegramChatId": "Telegram Chat ID",
"attributeMailSmtpHost": "Mail: SMTP Host",
"attributeMailSmtpPort": "Mail: SMTP Port",
"attributeMailSmtpStarttlsEnable": "Mail: SMTP STARTTLS Enable",