Add enableSshSupport option to support tickets
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user