Skip to content

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

chore: improving ui of the sse

Ilian Sapundshievbdf2641b8b34
diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
index 4aa5a87ea..f5cb390e6 100644
--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
@@ -757,66 +757,6 @@ function CreateEditLocationDialog(props: Props) {
</FormGroup>
</AccordionDetails>
</Accordion>
- {type === locationType.TYPE_CLOUD && (
- <Accordion>
- <AccordionSummary
- data-tid="switchEncryptionTID"
- expandIcon={<ExpandIcon />}
- aria-controls="panelEncryption-content"
- id="panelEncryption-header"
- >
- <Typography>{t('core:switchEncryption')}</Typography>
- </AccordionSummary>
- <AccordionDetails>
- <FormControl fullWidth={true}>
- <TextField
- margin="dense"
- name="encryptionKey"
- type={showEncryptionKey ? 'text' : 'password'}
- fullWidth={true}
- inputProps={{ autoCorrect: 'off', autoCapitalize: 'none' }}
- data-tid="encryptionKeyTID"
- placeholder={t('s3encryptionKey')}
- onChange={(event) => setEncryptionKey(event.target.value)}
- value={encryptionKey}
- label={t('core:encryptionKey')}
- InputProps={{
- endAdornment: (
- <InputAdornment position="end">
- <IconButton
- aria-label="toggle password visibility"
- onClick={() =>
- setShowEncryptionKey(!showEncryptionKey)
- }
- size="large"
- >
- {showEncryptionKey ? (
- <Visibility />
- ) : (
- <VisibilityOff />
- )}
- </IconButton>
- <IconButton
- aria-label="auto fill password"
- onClick={() =>
- setEncryptionKey(
- CryptoJS.lib.WordArray.random(32)
- .toString(CryptoJS.enc.Hex)
- .slice(0, 32),
- )
- }
- size="large"
- >
- <PasswordIcon />
- </IconButton>
- </InputAdornment>
- ),
- }}
- />
- </FormControl>
- </AccordionDetails>
- </Accordion>
- )}
<Accordion>
<AccordionSummary
data-tid="switchAdvancedModeTID"
diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.json
index 0ed23ae4a..64820dd9e 100644
--- a/src/renderer/locales/en/core.json
+++ b/src/renderer/locales/en/core.json
@@ -844,8 +844,8 @@
"copyright": "Copyright",
"modificationDate": "Modification Date",
"noSelectedEntryError": "No Selected Entries",
- "confirmEncryptionChanged": "After changing the encryption key, you will not be able to decrypt files encrypted with the old key. Are you sure you want to continue?",
- "encryptionExplanation": "This is an experimental feature, which can lead to loosing data if you forget the following bucket encryption key. Use with caution!!!",
+ "confirmEncryptionChanged": "After changing the encryption key, you won't be able to decrypt files encrypted with the previous key. All new created or uploaded files will be encrypted with the new key. Are you sure you want to continue?",
+ "encryptionExplanation": "This is an experimental feature, which will encrypt (on the server side) all files created or uploaded with this app. This is not an end to end encryption. If you forget the bucket encryption key, you will loose the content of the encrypted files. Use with caution!",
"switchEncryption": "Server Side Encryption",
"generateEncryptionKey": "Generate random encryption key",
"toggleKeyVisibility": "Toggle key visibility",