summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-10-01 16:44:40 +0200
committerAlexandre Kühn <aku@odoo.com>2018-10-01 18:19:48 +0200
commite8a071a744b7706214952440059cc481bbe504d2 (patch)
tree8becb499418bc76f40f3d060b71abac4606e49e7 /addons/mail/static/src/xml
parent05971d00509a0f5d25b425ac93ef0640af1caa97 (diff)
[FIX] mail: show/hide 'New Message/Channel' in discuss mobile
Before this commit, the buttons 'New Message' and 'New Channel' were shown in all tabs of discuss mobile, even though they should only be displayed in some tabs. This issue comes from a change from BS3 to BS4, in which the classname `visible-xs` has been replaced with `d-block d-md-none`. With BS4, the classnames `d_*` are now `!important`. As a result, `d-block d-md-none o_hidden` still displayed the button because `o_hidden` does not have `!important`. This commit fixes this issue by removing the reliance on `o_hidden`, and now only uses `d-*` for the visibility of the button. The toggling of `o_hidden` has been replaced with adding or removing the classes `d-none` (hidden) and `d-block` (visible). Those buttons are not shown in desktop thanks to `d-md-none`. Task-ID 1877502
Diffstat (limited to 'addons/mail/static/src/xml')
-rw-r--r--addons/mail/static/src/xml/discuss.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/discuss.xml b/addons/mail/static/src/xml/discuss.xml
index 5d35ca8b7cd..a09b7a6f754 100644
--- a/addons/mail/static/src/xml/discuss.xml
+++ b/addons/mail/static/src/xml/discuss.xml
@@ -178,7 +178,7 @@
<button type="button" class="btn btn-primary o_mail_discuss_button_invite d-none d-md-inline-block" title="Invite people">Invite</button>
<button type="button" class="btn btn-secondary o_mail_discuss_button_mark_all_read d-none d-md-inline-block" title="Mark all as read">Mark all read</button>
<button type="button" class="btn btn-secondary o_mail_discuss_button_unstar_all" title="Unstar all messages">Unstar all</button>
- <button type="button" class="btn btn-secondary o_mail_discuss_button_dm d-block d-md-none" title="New Message">New Message</button>
+ <button type="button" class="btn btn-secondary o_mail_discuss_button_dm_chat o_hidden d-md-none" title="New Message">New Message</button>
<button t-if="!disableAddThread" type="button" class="btn btn-secondary o_mail_discuss_button_public o_mail_discuss_button_private d-block d-md-none" title="New Channel">New Channel</button>
<button type="button" class="btn btn-secondary o_hidden o_mail_discuss_button_select_all" title="Select all messages to moderate">Select All</button>
<button type="button" class="btn btn-secondary o_hidden o_mail_discuss_button_unselect_all" title="Unselect all messages to moderate">Unselect All</button>