Make custom cert upload not hang and handle errors properly
This commit is contained in:
parent
76ab598587
commit
835acfc58e
2 changed files with 20 additions and 7 deletions
|
@ -1348,6 +1348,11 @@ angular.module("core-config-setup", ['angularFileUpload'])
|
|||
callback(true);
|
||||
$scope.resetUpload++;
|
||||
loadCertificates();
|
||||
}).error(function(r) {
|
||||
bootbox.alert('Could not upload certificate')
|
||||
callback(false);
|
||||
$scope.resetUpload++;
|
||||
loadCertificates();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue