Skip to content

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

extending the license dialog

Ilian Sapundshievc1e8ac39c83a
diff --git a/app/components/dialogs/LicenseDialog.js b/app/components/dialogs/LicenseDialog.js
index c78f56783..b87b53d35 100644
--- a/app/components/dialogs/LicenseDialog.js
+++ b/app/components/dialogs/LicenseDialog.js
@@ -28,6 +28,7 @@ import i18n from '../../services/i18n';
import { Pro } from '../../pro';
import AppConfig from '../../config';
import LicenseContent from '../../LICENSE.txt';
+import PlatformIO from '../../services/platform-io';
type Props = {
open: boolean,
@@ -83,12 +84,19 @@ const LicenseDialog = (props: Props) => {
>
{i18n.t('core:print')}
</Button> */}
+ <Button
+ data-tid="confirmLicenseDialog"
+ onClick={PlatformIO.quitApp}
+ color="primary"
+ >
+ {i18n.t('core:quit')}
+ </Button>
<Button
data-tid="confirmLicenseDialog"
onClick={props.onClose}
color="primary"
>
- {i18n.t('core:ok')}
+ {i18n.t('core:agreeLicense')}
</Button>
</DialogActions>
);
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index 02b5785c5..a6c7a8aa9 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -199,6 +199,7 @@
"view": "View",
"help": "Help",
"license": "License Agreement",
+ "agreeLicense": "I Agree",
"shortcutKeys": "Keyboard Shortcuts",
"settings": "Settings",
"fileExists": "Target file '{{fileName}}' already exists.",