Add enableSshSupport option to support tickets

This commit is contained in:
Johannes Zellner
2020-10-05 15:20:07 +02:00
parent 2fe86f9b8a
commit 41e8bcd02f
3 changed files with 25 additions and 7 deletions

View File

@@ -1594,13 +1594,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.createTicket = function (type, subject, description, appId /* optional */, altEmail /* optional */, callback) {
Client.prototype.createTicket = function (ticket, callback) {
// just to be eplicit here
var data = {
type: type,
subject: subject,
description: description,
appId: appId || undefined,
altEmail: altEmail || undefined
enableSshSupport: !!ticket.enableSshSupport,
type: ticket.type,
subject: ticket.subject,
description: ticket.description,
appId: ticket.appId || undefined,
altEmail: ticket.altEmail || undefined
};
post('/api/v1/support/ticket', data, null, function (error, data, status) {