mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Added: show GnuPG import/delete key error
This commit is contained in:
parent
9a63071292
commit
20e391cf1c
2 changed files with 14 additions and 8 deletions
|
|
@ -52,11 +52,15 @@ export const GnuPGUserStore = new class {
|
|||
if (key.askDelete()) {
|
||||
Remote.request('GnupgDeleteKey',
|
||||
(iError, oData) => {
|
||||
if (oData && oData.Result) {
|
||||
if (isPrivate) {
|
||||
this.privateKeys.remove(key);
|
||||
} else {
|
||||
this.publicKeys.remove(key);
|
||||
if (oData) {
|
||||
if (iError) {
|
||||
alert(oData.ErrorMessage);
|
||||
} else if (oData.Result) {
|
||||
if (isPrivate) {
|
||||
this.privateKeys.remove(key);
|
||||
} else {
|
||||
this.publicKeys.remove(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
|
|
@ -107,8 +111,8 @@ export const GnuPGUserStore = new class {
|
|||
importKey(key, callback) {
|
||||
Remote.request('GnupgImportKey',
|
||||
(iError, oData) => {
|
||||
if (oData && oData.Result) {
|
||||
// this.gnupgKeyring = oData.Result;
|
||||
if (oData && oData.Result/* && (oData.Result.imported || oData.Result.secretimported)*/) {
|
||||
this.loadKeyrings();
|
||||
}
|
||||
callback && callback(iError, oData);
|
||||
}, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue