diff options
author | Maximilian Krambach <[email protected]> | 2018-08-16 15:07:29 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-08-16 15:07:29 +0000 |
commit | d65a392670888f86071ca629266ec14b7afb0e46 (patch) | |
tree | e6d0d297e5ad4d043c91a025ffb3aabad0d833fe /lang/js | |
parent | js: avoid async getters (diff) | |
download | gpgme-d65a392670888f86071ca629266ec14b7afb0e46.tar.gz gpgme-d65a392670888f86071ca629266ec14b7afb0e46.zip |
js: fix import feedback
--
* src/Keyring.js For Key imports without prepare_sync the import
feedback was lacking the summary
Diffstat (limited to 'lang/js')
-rw-r--r-- | lang/js/src/Keyring.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lang/js/src/Keyring.js b/lang/js/src/Keyring.js index 93923c6f..eb4f60f5 100644 --- a/lang/js/src/Keyring.js +++ b/lang/js/src/Keyring.js @@ -327,7 +327,15 @@ export class GPGME_Keyring { status: infos[fprs[i]].status }); } - resolve(resultset); + let summary = {}; + for (let i=0; i < feedbackValues.length; i++ ){ + summary[feedbackValues[i]] = + response[feedbackValues[i]]; + } + resolve({ + Keys:resultset, + summary:summary + }); } }, function(error){ |