mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Added options to Identity for PGP sign and encrypt #89
This commit is contained in:
parent
4c84c6cdfc
commit
c72c2dbaa4
6 changed files with 65 additions and 46 deletions
|
|
@ -346,7 +346,13 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
|
||||
sendSuccessButSaveError: value => !value && this.savedErrorDesc(''),
|
||||
|
||||
currentIdentity: value => value && this.from(value.formattedName()),
|
||||
currentIdentity: value => {
|
||||
if (value) {
|
||||
this.from(value.formattedName());
|
||||
this.pgpEncrypt(value.pgpEncrypt/* || SettingsUserStore.pgpEncrypt()*/);
|
||||
this.pgpSign(value.pgpSign/* || SettingsUserStore.pgpSign()*/);
|
||||
}
|
||||
},
|
||||
|
||||
from: value => {
|
||||
this.canPgpSign(false);
|
||||
|
|
@ -1389,14 +1395,6 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
});
|
||||
}
|
||||
|
||||
togglePgpSign() {
|
||||
this.pgpSign(!this.pgpSign()/* && this.canPgpSign()*/);
|
||||
}
|
||||
|
||||
togglePgpEncrypt() {
|
||||
this.pgpEncrypt(!this.pgpEncrypt()/* && this.canPgpEncrypt()*/);
|
||||
}
|
||||
|
||||
async getMessageRequestParams(sSaveFolder, draft)
|
||||
{
|
||||
let Text = this.oEditor.getData().trim(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue