js: fix import feedback

--
* src/Keyring.js For Key imports without prepare_sync the import
  feedback was lacking the summary
This commit is contained in:
Maximilian Krambach 2018-08-16 17:07:29 +02:00
parent ea43158d40
commit d65a392670

View File

@ -327,7 +327,15 @@ export class GPGME_Keyring {
status: infos[fprs[i]].status 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){ }, function(error){