Improve display of S/MIME certificates

This commit is contained in:
Francis Lachapelle
2018-01-23 13:30:56 -05:00
parent 511aa63a34
commit 7ebdac5525
17 changed files with 291 additions and 60 deletions
@@ -43,6 +43,7 @@
_registerHotkeys(hotkeys);
_loadCertificate();
$scope.$on('$destroy', function() {
// Deregister hotkeys
@@ -71,6 +72,15 @@
});
}
function _loadCertificate() {
if (vm.card.hasCertificate)
vm.card.$certificate().then(function(crt) {
vm.certificate = crt;
}, function() {
delete vm.card.hasCertificate;
});
}
function transformCategory(input) {
if (angular.isString(input))
return { value: input };