Reduce feedback form options and add ability to specify failing app

This commit is contained in:
Johannes Zellner
2018-03-05 12:54:09 +01:00
parent 451c697fb7
commit 2b6ce4f813
4 changed files with 20 additions and 12 deletions

View File

@@ -859,11 +859,12 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
}).error(defaultErrorHandler(callback));
};
Client.prototype.feedback = function (type, subject, description, callback) {
Client.prototype.feedback = function (type, subject, description, appId /* optional */, callback) {
var data = {
type: type,
subject: subject,
description: description
description: description,
appId: appId || undefined
};
post('/api/v1/feedback', data).success(function (data, status) {