diff --git a/src/views/app.js b/src/views/app.js index dfe7b18c3..240786708 100644 --- a/src/views/app.js +++ b/src/views/app.js @@ -8,36 +8,6 @@ /* global ISTATES */ /* global ERROR */ - -// TODO use this once we enable custom SSL certificate ui again -// $scope.readCertificate = function (event) { -// $scope.$apply(function () { -// $scope.appConfigure.certificateFile = null; -// $scope.appConfigure.certificateFileName = event.target.files[0].name; - -// var reader = new FileReader(); -// reader.onload = function (result) { -// if (!result.target || !result.target.result) return console.error('Unable to read local file'); -// $scope.appConfigure.certificateFile = result.target.result; -// }; -// reader.readAsText(event.target.files[0]); -// }); -// }; - -// $scope.readKey = function (event) { -// $scope.$apply(function () { -// $scope.appConfigure.keyFile = null; -// $scope.appConfigure.keyFileName = event.target.files[0].name; - -// var reader = new FileReader(); -// reader.onload = function (result) { -// if (!result.target || !result.target.result) return console.error('Unable to read local file'); -// $scope.appConfigure.keyFile = result.target.result; -// }; -// reader.readAsText(event.target.files[0]); -// }); -// }; - angular.module('Application').controller('AppController', ['$scope', '$location', '$timeout', '$interval', '$route', '$routeParams', 'Client', function ($scope, $location, $timeout, $interval, $route, $routeParams, Client) { Client.onReady(function () { if (!Client.getUserInfo().admin) $location.path('/'); }); @@ -298,7 +268,6 @@ angular.module('Application').controller('AppController', ['$scope', '$location' Client.configureApp($scope.app.id, 'location', data, function (error) { if (error && (error.statusCode === 409 || error.statusCode === 400)) { - console.dir(error); if ((error.subdomain && error.domain) || error.field === 'location') { if (data.domain === error.domain && data.location === error.subdomain) { // the primary $scope.location.error.location = error.message;