From d65a392670888f86071ca629266ec14b7afb0e46 Mon Sep 17 00:00:00 2001 From: Maximilian Krambach Date: Thu, 16 Aug 2018 17:07:29 +0200 Subject: [PATCH] js: fix import feedback -- * src/Keyring.js For Key imports without prepare_sync the import feedback was lacking the summary --- lang/js/src/Keyring.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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){