summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread_widget.js
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-10-10 11:39:08 +0000
committerAlexandre Kühn <aku@odoo.com>2018-10-16 07:29:07 +0000
commitc0c2590a40594ef749aeda3dfdc4c6754572a218 (patch)
tree60820e4c5fcddff665aca488787bb928912491c8 /addons/mail/static/src/js/thread_widget.js
parent510065ab67bf8c3c413991de937b4447f9f915a9 (diff)
[FIX] mail: no moderation in chat window
Before this commit, a moderator of a moderated channel could see commands on 'pending moderation' messages in a chat window, although none of them work in chat windows. Those commands only work in Discuss. Making them work in chat windows is not trivial, because some code must be redesigned for this. This commit disables moderation commands in chat window. Moderators of such channel now see 'Pending moderation' on such messages in chat window, and mouse-hovering on this annotation tells the user to moderate those messages in the Discuss app. Task-ID 1887963
Diffstat (limited to 'addons/mail/static/src/js/thread_widget.js')
-rw-r--r--addons/mail/static/src/js/thread_widget.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/thread_widget.js b/addons/mail/static/src/js/thread_widget.js
index a5822a03e39..10ecb5d2824 100644
--- a/addons/mail/static/src/js/thread_widget.js
+++ b/addons/mail/static/src/js/thread_widget.js
@@ -58,6 +58,7 @@ var ThreadWidget = Widget.extend({
this._enabledOptions = _.defaults(options || {}, {
displayOrder: ORDER.ASC,
displayMarkAsRead: true,
+ displayModerationCommands: false,
displayStars: true,
displayDocumentLinks: true,
displayAvatars: true,
@@ -70,6 +71,7 @@ var ThreadWidget = Widget.extend({
this._disabledOptions = {
displayOrder: this._enabledOptions.displayOrder,
displayMarkAsRead: false,
+ displayModerationCommands: false,
displayStars: false,
displayDocumentLinks: false,
displayAvatars: this._enabledOptions.displayAvatars,