summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/chatter.xml
diff options
context:
space:
mode:
authorXavierDo <xdo@odoo.com>2019-02-20 11:45:31 +0000
committerXavier-Do <xdo@odoo.com>2019-03-28 09:34:11 +0000
commite1cd5bbedeac95e65d84da0b7657b8d54ecb6ce3 (patch)
tree889e060499741f6100ecc5557027ca1ef4fad050 /addons/mail/static/src/xml/chatter.xml
parentc160c7360258fd4844e8588283d0a525403fc4e4 (diff)
[IMP] mail: add show more button on partner suggestion.
When sending a message from chatter, a list of suggested partners appears on the top of the text area. With the previous commit, cc will be added to this list. This commit adds a show more/show less button in case there is more than 3 suggested recipients to display. Task: 1925001
Diffstat (limited to 'addons/mail/static/src/xml/chatter.xml')
-rw-r--r--addons/mail/static/src/xml/chatter.xml10
1 files changed, 9 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/chatter.xml b/addons/mail/static/src/xml/chatter.xml
index 7fe1eeebd77..23202f608b9 100644
--- a/addons/mail/static/src/xml/chatter.xml
+++ b/addons/mail/static/src/xml/chatter.xml
@@ -60,7 +60,7 @@
<!-- List of followers -->
<div class="o_composer_suggested_partners">
<t t-foreach='widget.suggestedPartners' t-as='recipient'>
- <div t-attf-title="Add as recipient and follower (reason: #{recipient.reason})">
+ <div t-attf-title="Add as recipient and follower (reason: #{recipient.reason})" t-att-class="recipient_index > 2 ? 'o_suggested_toggle o_hidden' : ''">
<div class="custom-control custom-checkbox">
<input type="checkbox"
class="custom-control-input"
@@ -74,6 +74,14 @@
</div>
</div>
</t>
+ <t t-if='widget.suggestedPartners.length > 3'>
+ <a href="#" class='o_suggested_show_more_less o_suggested_toggle'>
+ Show <t t-esc="widget.suggestedPartners.length - 3"/> more
+ </a>
+ <a href="#" class='o_suggested_show_more_less o_suggested_toggle o_hidden'>
+ Show <t t-esc="widget.suggestedPartners.length - 3"/> less
+ </a>
+ </t>
</div>
</t>
</t>