diff --git a/dev/Settings/User/OpenPgp.js b/dev/Settings/User/OpenPgp.js index 03cd5e028..3f0c0c20a 100644 --- a/dev/Settings/User/OpenPgp.js +++ b/dev/Settings/User/OpenPgp.js @@ -11,6 +11,9 @@ import { AddOpenPgpKeyPopupView } from 'View/Popup/AddOpenPgpKey'; import { NewOpenPgpKeyPopupView } from 'View/Popup/NewOpenPgpKey'; import { ViewOpenPgpKeyPopupView } from 'View/Popup/ViewOpenPgpKey'; +import { Capa } from 'Common/Enums'; +import { Settings } from 'Common/Globals'; + export class OpenPgpUserSettings /*extends AbstractViewSettings*/ { constructor() { this.gnupgkeys = PgpUserStore.gnupgKeys; @@ -19,8 +22,10 @@ export class OpenPgpUserSettings /*extends AbstractViewSettings*/ { this.openpgpkeysPrivate = PgpUserStore.openpgpPrivateKeys; this.openPgpKeyForDeletion = ko.observable(null).deleteAccessHelper(); - this.canOpenPGP = !!PgpUserStore.openpgpKeyring; -// this.canOpenPGP = Settings.capa(Capa.OpenPGP); +// this.canOpenPGP = !!PgpUserStore.openpgpKeyring; + this.canOpenPGP = Settings.capa(Capa.OpenPGP); +// this.canGnuPG = !!PgpUserStore.gnupgKeyring; + this.canGnuPG = Settings.capa(Capa.GnuPG); this.canMailvelope = !!window.mailvelope; this.allowDraftAutosave = SettingsUserStore.allowDraftAutosave; diff --git a/dev/Stores/User/Pgp.js b/dev/Stores/User/Pgp.js index ebb66c206..d0e20bb50 100644 --- a/dev/Stores/User/Pgp.js +++ b/dev/Stores/User/Pgp.js @@ -168,7 +168,7 @@ export const PgpUserStore = new class { * @returns {boolean} */ isSupported() { - return !!(window.openpgp || window.mailvelope); + return !!(window.openpgp || window.mailvelope || Settings.capa(Capa.GnuPG)); } gnupgImportKey(key, callback) { diff --git a/snappymail/v/0.0.0/app/templates/Views/User/SettingsOpenPGP.html b/snappymail/v/0.0.0/app/templates/Views/User/SettingsOpenPGP.html index db151c9a8..a91b3c658 100644 --- a/snappymail/v/0.0.0/app/templates/Views/User/SettingsOpenPGP.html +++ b/snappymail/v/0.0.0/app/templates/Views/User/SettingsOpenPGP.html @@ -3,7 +3,7 @@ - +   

-

GnuPG

+ +
GnuPG
@@ -42,8 +43,10 @@
+ -

OpenPGP.js

+ +
OpenPGP.js
@@ -83,8 +86,9 @@
+ -

Mailvelope

+
Mailvelope