Add privacy policy link to Help & Support side panel (#6221)

Signed-off-by: Abigail Dawson <abigaildawson.dev@gmail.com>
This commit is contained in:
Abigail Dawson 2024-08-01 13:56:52 -04:00 committed by GitHub
parent 486ef0dc03
commit 3d42ba4e96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 19 additions and 8 deletions

View File

@ -1,6 +1,7 @@
{
"string": {
"ContactUs": "Contact us",
"ReportBug": "Report a Bug?"
"ReportBug": "Report a Bug?",
"PrivacyPolicy": "Privacy Policy"
}
}

View File

@ -1,6 +1,7 @@
{
"string": {
"ContactUs": "Contacta con Nosotros",
"ReportBug": "Reportar un error?"
"ReportBug": "Reportar un error?",
"PrivacyPolicy": "Política de Privacidad"
}
}

View File

@ -1,6 +1,7 @@
{
"string": {
"ContactUs": "Contactez nous",
"ReportBug": "Rapporter un bug?"
"ReportBug": "Rapporter un bug?",
"PrivacyPolicy": "Politique de Confidentialité"
}
}

View File

@ -1,6 +1,7 @@
{
"string": {
"ContactUs": "Contate-nos",
"ReportBug": "Reportar um erro?"
"ReportBug": "Reportar um erro?",
"PrivacyPolicy": "Política de Privacidade"
}
}

View File

@ -1,6 +1,7 @@
{
"string": {
"ContactUs": "Связаться с нами",
"ReportBug": "Сообщить об ошибке?"
"ReportBug": "Сообщить об ошибке?",
"PrivacyPolicy": "Политика конфиденциальности"
}
}

View File

@ -1,6 +1,7 @@
{
"string": {
"ContactUs": "联系我们",
"ReportBug": "报告错误?"
"ReportBug": "报告错误?",
"PrivacyPolicy": "隐私政策"
}
}

View File

@ -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
}
})

View File

@ -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 @@
</Scroller>
{/if}
<div class="footer">
<a href={privacyPolicyLink} target="_blank">
<Button id="privacy-policy" kind={'ghost'} label={support.string.PrivacyPolicy} stopPropagation={false} />
</a>
<a href={reportBugLink} target="_blank">
<Button id="report-a-bug" kind={'primary'} label={support.string.ReportBug} stopPropagation={false} />
</a>