diff --git a/src/js/client.js b/src/js/client.js index 8d857a16d..b9b56a542 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -1340,12 +1340,13 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }); }; - Client.prototype.createTicket = function (type, subject, description, appId /* optional */, callback) { + Client.prototype.createTicket = function (type, subject, description, appId /* optional */, altEmail /* optional */, callback) { var data = { type: type, subject: subject, description: description, - appId: appId || undefined + appId: appId || undefined, + altEmail: altEmail || undefined }; post('/api/v1/support/ticket', data, null, function (error, data, status) { diff --git a/src/views/support.html b/src/views/support.html index 9f5056751..e99b97fc8 100644 --- a/src/views/support.html +++ b/src/views/support.html @@ -18,6 +18,7 @@
@@ -26,6 +27,9 @@
+
+ +
diff --git a/src/views/support.js b/src/views/support.js index 5ec0d82e6..b28cb2d08 100644 --- a/src/views/support.js +++ b/src/views/support.js @@ -17,7 +17,8 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat subject: '', type: 'ticket', description: '', - appId: '' + appId: '', + altEmail: '' }; $scope.sshSupportEnabled = false; @@ -27,6 +28,7 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat $scope.feedback.description = ''; $scope.feedback.type = 'ticket'; $scope.feedback.appId = ''; + $scope.feedback.altEmail = ''; $scope.feedbackForm.$setUntouched(); $scope.feedbackForm.$setPristine(); @@ -37,7 +39,7 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat $scope.feedback.result = null; $scope.feedback.error = null; - Client.createTicket($scope.feedback.type, $scope.feedback.subject, $scope.feedback.description, $scope.feedback.appId, function (error, result) { + Client.createTicket($scope.feedback.type, $scope.feedback.subject, $scope.feedback.description, $scope.feedback.appId, $scope.feedback.altEmail, function (error, result) { if (error) { $scope.feedback.error = error.message; } else {