From 3d42ba4e96069707fa92030c496996d6b6138113 Mon Sep 17 00:00:00 2001 From: Abigail Dawson <145867967+AbigailDawson@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:56:52 -0400 Subject: [PATCH] Add privacy policy link to Help & Support side panel (#6221) Signed-off-by: Abigail Dawson --- plugins/support-assets/lang/en.json | 3 ++- plugins/support-assets/lang/es.json | 3 ++- plugins/support-assets/lang/fr.json | 3 ++- plugins/support-assets/lang/pt.json | 3 ++- plugins/support-assets/lang/ru.json | 3 ++- plugins/support-assets/lang/zh.json | 3 ++- plugins/support/src/index.ts | 4 +++- .../workbench-resources/src/components/HelpAndSupport.svelte | 5 ++++- 8 files changed, 19 insertions(+), 8 deletions(-) diff --git a/plugins/support-assets/lang/en.json b/plugins/support-assets/lang/en.json index ac74ca6487..9a5936eecf 100644 --- a/plugins/support-assets/lang/en.json +++ b/plugins/support-assets/lang/en.json @@ -1,6 +1,7 @@ { "string": { "ContactUs": "Contact us", - "ReportBug": "Report a Bug?" + "ReportBug": "Report a Bug?", + "PrivacyPolicy": "Privacy Policy" } } diff --git a/plugins/support-assets/lang/es.json b/plugins/support-assets/lang/es.json index 613753d14d..53f773ded2 100644 --- a/plugins/support-assets/lang/es.json +++ b/plugins/support-assets/lang/es.json @@ -1,6 +1,7 @@ { "string": { "ContactUs": "Contacta con Nosotros", - "ReportBug": "Reportar un error?" + "ReportBug": "Reportar un error?", + "PrivacyPolicy": "Política de Privacidad" } } diff --git a/plugins/support-assets/lang/fr.json b/plugins/support-assets/lang/fr.json index c0502a1442..d752300255 100644 --- a/plugins/support-assets/lang/fr.json +++ b/plugins/support-assets/lang/fr.json @@ -1,6 +1,7 @@ { "string": { "ContactUs": "Contactez nous", - "ReportBug": "Rapporter un bug?" + "ReportBug": "Rapporter un bug?", + "PrivacyPolicy": "Politique de Confidentialité" } } \ No newline at end of file diff --git a/plugins/support-assets/lang/pt.json b/plugins/support-assets/lang/pt.json index 836e9715e4..50fc0b38ae 100644 --- a/plugins/support-assets/lang/pt.json +++ b/plugins/support-assets/lang/pt.json @@ -1,6 +1,7 @@ { "string": { "ContactUs": "Contate-nos", - "ReportBug": "Reportar um erro?" + "ReportBug": "Reportar um erro?", + "PrivacyPolicy": "Política de Privacidade" } } diff --git a/plugins/support-assets/lang/ru.json b/plugins/support-assets/lang/ru.json index c99d2225ae..23335ef2f5 100644 --- a/plugins/support-assets/lang/ru.json +++ b/plugins/support-assets/lang/ru.json @@ -1,6 +1,7 @@ { "string": { "ContactUs": "Связаться с нами", - "ReportBug": "Сообщить об ошибке?" + "ReportBug": "Сообщить об ошибке?", + "PrivacyPolicy": "Политика конфиденциальности" } } diff --git a/plugins/support-assets/lang/zh.json b/plugins/support-assets/lang/zh.json index 5fd21a2104..773db8465f 100644 --- a/plugins/support-assets/lang/zh.json +++ b/plugins/support-assets/lang/zh.json @@ -1,6 +1,7 @@ { "string": { "ContactUs": "联系我们", - "ReportBug": "报告错误?" + "ReportBug": "报告错误?", + "PrivacyPolicy": "隐私政策" } } diff --git a/plugins/support/src/index.ts b/plugins/support/src/index.ts index bbe7506f28..712abc96d4 100644 --- a/plugins/support/src/index.ts +++ b/plugins/support/src/index.ts @@ -24,6 +24,7 @@ export { deleteSupportConversation, updateSupportConversation } from './utils' export const supportLink = 'https://join.slack.com/t/hulycommunity/shared_invite/zt-2cyrevz8g-AGqEDZNsujbn4wHOWd7myg' export const reportBugLink = 'https://github.com/hcengineering/platform/issues/new' export const docsLink = 'http://docs.huly.io/' +export const privacyPolicyLink = 'https://v1.huly.io/legal/privacy/' /** * @public @@ -43,6 +44,7 @@ export default plugin(supportId, { }, string: { ContactUs: '' as IntlString, - ReportBug: '' as IntlString + ReportBug: '' as IntlString, + PrivacyPolicy: '' as IntlString } }) diff --git a/plugins/workbench-resources/src/components/HelpAndSupport.svelte b/plugins/workbench-resources/src/components/HelpAndSupport.svelte index ad17607656..a3249eed0d 100644 --- a/plugins/workbench-resources/src/components/HelpAndSupport.svelte +++ b/plugins/workbench-resources/src/components/HelpAndSupport.svelte @@ -16,7 +16,7 @@ import { Asset, IntlString } from '@hcengineering/platform' import { getClient } from '@hcengineering/presentation' import setting, { settingId } from '@hcengineering/setting' - import support, { docsLink, reportBugLink, supportLink } from '@hcengineering/support' + import support, { docsLink, reportBugLink, supportLink, privacyPolicyLink } from '@hcengineering/support' import { AnySvelteComponent, Button, @@ -199,6 +199,9 @@ {/if}