fix(preferences(js)): set account id before importing certificate

Fixes #5084
This commit is contained in:
Francis Lachapelle
2020-07-16 17:30:10 -04:00
parent b78e66a10b
commit 566fe55d71
3 changed files with 21 additions and 6 deletions
@@ -49,7 +49,7 @@
onSuccessItem: function(item, response, status, headers) {
this.clearQueue();
$timeout(function() {
_.assign(vm.account, {security: {hasCertificate: true}});
_.assign(vm.account, {security: {hasCertificate: true}, $$certificate: response});
});
_loadCertificate();
},