Skip to content

TagSpaces is an offline, open source, document manager with tagging support

adding new links in config.js and using them in the about dialog

Ilian Sapundshiev3435df778761
diff --git a/app/components/dialogs/AboutDialog.js b/app/components/dialogs/AboutDialog.js
index 97313b801..bd3a7121b 100644
--- a/app/components/dialogs/AboutDialog.js
+++ b/app/components/dialogs/AboutDialog.js
@@ -126,21 +126,21 @@ const AboutDialog = (props: Props) => {
<br />
<Button
onClick={() => {
- PlatformIO.openUrl('https://www.tagspaces.org/about/imprint/');
+ PlatformIO.openUrl(AppConfig.links.imprintURL);
}}
>
Imprint
</Button>
<Button
onClick={() => {
- PlatformIO.openUrl('https://www.tagspaces.org/about/privacy/');
+ PlatformIO.openUrl(AppConfig.links.privacyURL);
}}
>
Privacy Policy
</Button>
<Button
onClick={() => {
- PlatformIO.openUrl('https://www.tagspaces.org/whatsnew/');
+ PlatformIO.openUrl(AppConfig.links.changelogURL);
}}
>
Changelog
@@ -173,7 +173,7 @@ const AboutDialog = (props: Props) => {
data-tid="checkForUpdates"
title={i18n.t('core:checkForNewVersion')}
onClick={() => {
- PlatformIO.openUrl('https://www.tagspaces.org/products/');
+ PlatformIO.openUrl(AppConfig.links.productsOverview);
}}
color="primary"
>
diff --git a/app/config.js b/app/config.js
index f4cc61e81..cd866796b 100644
--- a/app/config.js
+++ b/app/config.js
@@ -52,6 +52,8 @@ export default {
productEnterprise: 'https://www.tagspaces.org/products/enterprise/',
downloadURL: 'https://www.tagspaces.org/downloads/',
changelogURL: 'https://www.tagspaces.org/whatsnew/',
+ imprintURL: 'https://www.tagspaces.org/about/imprint/',
+ privacyURL: 'https://www.tagspaces.org/about/privacy/',
suggestFeature: 'https://trello.com/b/TGeG5bi9',
reportIssue: 'https://github.com/tagspaces/tagspaces/issues/',
helpTranslating: 'https://www.transifex.com/tagspaces/tagspaces/',