Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
actual-vt-capstone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danieljk
actual-vt-capstone
Commits
2ca07c7c
Unverified
Commit
2ca07c7c
authored
2 years ago
by
Jed Fox
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Block enabling e2e encryption when the crypto API is unavailable (#648)
parent
9094703c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/desktop-client/src/components/settings/Encryption.js
+19
-0
19 additions, 0 deletions
...ages/desktop-client/src/components/settings/Encryption.js
with
19 additions
and
0 deletions
packages/desktop-client/src/components/settings/Encryption.js
+
19
−
0
View file @
2ca07c7c
...
...
@@ -9,6 +9,9 @@ import { Setting } from './UI';
export
default
function
EncryptionSettings
({
prefs
,
pushModal
})
{
const
serverURL
=
useServerURL
();
const
missingCryptoAPI
=
!
(
window
.
crypto
&&
Object
.
hasOwnProperty
.
call
(
crypto
,
'
subtle
'
)
);
function
onChangeKey
()
{
pushModal
(
'
create-encryption-key
'
,
{
recreate
:
true
});
...
...
@@ -34,6 +37,22 @@ export default function EncryptionSettings({ prefs, pushModal }) {
<
/a
>
<
/Text
>
<
/Setting
>
)
:
missingCryptoAPI
?
(
<
Setting
primaryAction
=
{
<
Button
disabled
>
Enable
encryption
…
<
/Button>}
>
<
Text
>
<
strong
>
End
-
to
-
end
encryption
<
/strong> is not available when making a
n
unencrypted
connection
to
a
remote
server
.
You
’
ll
need
to
enable
HTTPS
on
your
server
to
use
end
-
to
-
end
encryption
.
This
problem
may
also
occur
if
your
browser
is
too
old
to
work
with
Actual
.{
'
'
}
<
a
href
=
"
https://actualbudget.github.io/docs/Installing/HTTPS
"
target
=
"
_blank
"
rel
=
"
noopener noreferrer
"
>
Learn
more
…
<
/a
>
<
/Text
>
<
/Setting
>
)
:
serverURL
?
(
<
Setting
primaryAction
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment