Skip to content

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

feature: added possibility to cancel the subscription from the app

Ilian Sapundshievd6d06b1cee5a
diff --git a/app/components/HelpFeedbackPanel.tsx b/app/components/HelpFeedbackPanel.tsx
index e7d0d1f77..f7cba92dc 100644
--- a/app/components/HelpFeedbackPanel.tsx
+++ b/app/components/HelpFeedbackPanel.tsx
@@ -30,6 +30,7 @@ import ChangeLogIcon from '@mui/icons-material/ImportContacts';
import OnboardingIcon from '@mui/icons-material/Explore';
import WebClipperIcon from '@mui/icons-material/Transform';
import EmailIcon from '@mui/icons-material/Email';
+import CancelSubscriptionIcon from '@mui/icons-material/EventBusy';
import IssueIcon from '@mui/icons-material/BugReport';
import TranslationIcon from '@mui/icons-material/Translate';
import NewFeatureIcon from '@mui/icons-material/Gesture';
@@ -206,6 +207,19 @@ function HelpFeedbackPanel(props: Props) {
{i18n.t('core:emailContact')}
</Typography>
</ListItem>
+ <ListItem
+ button
+ onClick={() =>
+ openURLExternally(Links.links.cancelSubscription, true)
+ }
+ >
+ <ListItemIcon>
+ <CancelSubscriptionIcon />
+ </ListItemIcon>
+ <Typography style={{ color: theme.palette.text.primary }}>
+ {i18n.t('core:cancelSubscription')}
+ </Typography>
+ </ListItem>
<ListItem button onClick={() => openURLExternally(Links.links.twitter)}>
<ListItemIcon>
<TwitterIcon />
diff --git a/app/links.ts b/app/links.ts
index aa5967634..7297e71b0 100644
--- a/app/links.ts
+++ b/app/links.ts
@@ -46,7 +46,9 @@ const Links = {
webClipper: 'https://www.tagspaces.org/products/webclipper/',
twitter: 'https://twitter.com/tagspaces',
facebook: 'https://www.facebook.com/tagspacesapp',
- emailContact: 'mailto:[email protected]?subject=App'
+ emailContact: 'mailto:[email protected]?subject=App',
+ cancelSubscription:
+ 'mailto:[email protected]?subject=Cancel%20subscription&body=Please%20enter%20here%20you%20order%20ID%20or%20the%20email%20with%20which%20the%20purchase%20was%20made.' // 'https://fastspring.com/consumer-support-form/?ulCase.Primary_Category__c=Cancel%20/%20Refund&Case.Category__c=Cancel%20Subscription'
},
documentationLinks: {
general: 'https://docs.tagspaces.org/',
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index e0e737414..e5be1efb4 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -90,6 +90,7 @@
"showSearch": "Show Search",
"deleteDocument": "Delete Document",
"openFileExternally": "Open File Externally",
+ "openFileInWindow": "Open File In New Window",
"showUnixHiddenFiles": "Show files/directories with a dot(.) in front of the name (e.g. Unix, Linux, OS X hidden files)",
"checkForNewVersionOnStartup": "Check for new version on startup",
"reorderTags": "Enable changing the tag order with drag and drop",
@@ -284,7 +285,7 @@
"deleteConfirmationTitle": "Confirm Delete",
"deleteConfirmationContent": "The selected entries will be permanently deleted. Are you sure?",
"backgroundColor": "Background Color",
- "changeBackgroundColor": "Change Background Color",
+ "changeBackgroundColor": "Change Color",
"moreOperations": "More Operations",
"options": "Options",
"desktopMode": "Desktop mode",
@@ -663,11 +664,12 @@
"byFirstTag": "By First Tag",
"byExtension": "By Extension",
"rename": "Rename",
- "fileOpenHistory": "Last opened files history",
- "folderOpenHistory": "Last opened folders history",
- "fileEditHistory": "Last edited files history",
+ "fileOpenHistory": "Recently Opened Files",
+ "folderOpenHistory": "Recently Opened Folders",
+ "fileEditHistory": "Recently Edited Files",
"refreshHistory": "Refresh History",
"deleteHistory": "Delete History",
"quickAccess": "Quick access",
+ "cancelSubscription": "Cancel Subscription",
"-": "-"
}
diff --git a/app/services/electron-menus.ts b/app/services/electron-menus.ts
index 2b03825e2..6731b12e9 100644
--- a/app/services/electron-menus.ts
+++ b/app/services/electron-menus.ts
@@ -277,6 +277,15 @@ export default function buildDesktopMenu(props: any, i18n) {
label: '&' + i18n.t('license'),
click: props.toggleLicenseDialog
},
+ {
+ label: i18n.t('cancelSubscription'),
+ click: () => {
+ props.openURLExternally({
+ url: Links.links.cancelSubscription,
+ skipConfirm: true
+ });
+ }
+ },
{
label: '&' + i18n.t('thirdPartyLibs'),
click: props.toggleThirdPartyLibsDialog