js: fix import feedback
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Thu, 16 Aug 2018 15:07:29 +0000 (17:07 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Thu, 16 Aug 2018 15:07:29 +0000 (17:07 +0200)
--
* src/Keyring.js For Key imports without prepare_sync the import
  feedback was lacking the summary

lang/js/src/Keyring.js

index 93923c6..eb4f60f 100644 (file)
@@ -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){