summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread.xml
diff options
context:
space:
mode:
authordbh <dbh@odoo.com>2018-02-05 15:27:21 +0530
committerAaron Bohy <aab@odoo.com>2018-03-30 15:30:37 +0200
commitea97fa3ac6f51eb982d97812a6082616fff6e167 (patch)
tree67339f5ee1feb5400fc8609f0065dc219e77c09f /addons/mail/static/src/xml/thread.xml
parentc5c2b4855bd6f2adf2f9a6e1f5cec159c4766169 (diff)
[IMP] mail: Discuss: load older messages automatically
After this rev., in Discuss, messages are automatically loaded when the user scrolls to the top of the channel. Task 33958 Co-authored-by: Aaron Bohy <aab@odoo.com>
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
-rw-r--r--addons/mail/static/src/xml/thread.xml9
1 files changed, 7 insertions, 2 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml
index e1c0b843482..803e7d6563b 100644
--- a/addons/mail/static/src/xml/thread.xml
+++ b/addons/mail/static/src/xml/thread.xml
@@ -332,8 +332,13 @@
</t>
<t t-name="mail.ChatThread.LoadMore">
- <div t-if="!all_messages_loaded" class="o_thread_show_more">
- <button class="btn btn-sm btn-link">-------- Show older messages --------</button>
+ <div class="o_thread_show_more">
+ <t t-if="options.loadMoreOnScroll">
+ <span><i class="fa fa-spinner fa-spin"/> Loading older messages... </span>
+ </t>
+ <t t-else="">
+ <button class="btn btn-sm btn-link">-------- Show older messages --------</button>
+ </t>
</div>
</t>
</templates>