Make custom cert upload not hang and handle errors properly

This commit is contained in:
Joseph Schorr 2017-03-29 16:06:15 -04:00
parent 76ab598587
commit 835acfc58e
2 changed files with 20 additions and 7 deletions

View file

@ -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();
});
};