mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 10:25:27 +00:00
Improve display of S/MIME certificates
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user