From 1852b5e0454efe7aac369fd43201f6ff1037c405 Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Thu, 18 Feb 2021 09:48:39 +0100 Subject: [PATCH] feat: implement SNApplication.hasProtectionSources --- app/assets/javascripts/directives/views/accountMenu.ts | 2 +- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/directives/views/accountMenu.ts b/app/assets/javascripts/directives/views/accountMenu.ts index abd423ece..82fc6cdca 100644 --- a/app/assets/javascripts/directives/views/accountMenu.ts +++ b/app/assets/javascripts/directives/views/accountMenu.ts @@ -190,7 +190,7 @@ class AccountMenuCtrl extends PureViewCtrl { } hasProtections() { - return this.application.hasAccount() || this.application.hasPasscode(); + return this.application.hasProtectionSources(); } private getProtectionsDisabledUntil(): string | null { diff --git a/package.json b/package.json index 7eb868c83..5c935ecb0 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "@reach/alert-dialog": "^0.13.0", "@reach/dialog": "^0.13.0", "@standardnotes/sncrypto-web": "^1.2.10", - "@standardnotes/snjs": "^2.0.54", + "@standardnotes/snjs": "^2.0.57", "mobx": "^6.1.6", "preact": "^10.5.12" } diff --git a/yarn.lock b/yarn.lock index 20467740b..c5287e1bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1845,10 +1845,10 @@ "@standardnotes/sncrypto-common" "^1.2.7" libsodium-wrappers "^0.7.8" -"@standardnotes/snjs@^2.0.54": - version "2.0.54" - resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.0.54.tgz#dab1dbf0405c2671aa73e4dbb944863bd434f629" - integrity sha512-q1FErsVthiLpOarpKohoZhvXb8BGvgCBpXzbDZ64/15L2lErFUTYbXxyklBTy5DCbULwUh7wBvkm74JF10Ghlg== +"@standardnotes/snjs@^2.0.57": + version "2.0.57" + resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.0.57.tgz#758d30d9074aa463ca2b642783d929a10a1a1c9f" + integrity sha512-s2FP024TziZnt0nJ10Tbja3IQ2KOITA67EGchadAN+vapXEicTDX2MSCPzlvk2D1M494zu15vWwQX1ryeHvHHA== dependencies: "@standardnotes/sncrypto-common" "^1.2.9"