Ability to disable feedback on the entire instance

This commit is contained in:
yflory
2018-01-23 13:47:30 +01:00
parent 006d99e19a
commit 51587d1006
3 changed files with 40 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
define(['/customize/messages.js'], function (Messages) {
define([
'/customize/messages.js',
'/customize/application_config.js'
], function (Messages, AppConfig) {
var Feedback = {};
Feedback.init = function (state) {
@@ -19,6 +22,7 @@ define(['/customize/messages.js'], function (Messages) {
http.send();
};
Feedback.send = function (action, force) {
if (AppConfig.disableFeedback) { return; }
if (!action) { return; }
if (force !== true) {
if (!Feedback.state) { return; }