Allow SSL cert for the database to be configured

This change adds a field for the SSL cert for the database in the setup tool. Fixes #89
This commit is contained in:
Joseph Schorr 2015-06-29 08:08:10 +03:00
parent 4ec2143d47
commit bb07d0965f
8 changed files with 45 additions and 12 deletions

View file

@ -591,13 +591,18 @@ angular.module("core-config-setup", ['angularFileUpload'])
transclude: false,
restrict: 'C',
scope: {
'filename': '@filename'
'filename': '@filename',
'skipCheckFile': '@skipCheckFile',
'hasFile': '=hasFile'
},
controller: function($scope, $element, Restangular, $upload) {
$scope.hasFile = false;
$scope.onFileSelect = function(files) {
if (files.length < 1) { return; }
if (files.length < 1) {
$scope.hasFile = false;
return;
}
$scope.uploadProgress = 0;
$scope.upload = $upload.upload({
@ -623,7 +628,7 @@ angular.module("core-config-setup", ['angularFileUpload'])
});
};
if ($scope.filename) {
if ($scope.filename && $scope.skipCheckFile != "true") {
loadStatus($scope.filename);
}
}