diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-05-04 14:34:47 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2016-05-04 15:06:20 +0200 |
| commit | 80e83f17d4e0c110ebace7c39462fda7bf88e4c0 (patch) | |
| tree | 573af9500bb89561f47ffe350979d32de5e93346 /addons/mail/static/src/xml/chatter.xml | |
| parent | befbdcb935353e965be82b3c6c6cfe048283d6e8 (diff) | |
[IMP] mail: chatter: better sync between chatter and form view
When switching between records, the displayed thread was still the one of the
previous records until the messages of the current record were loaded, which
could be confusing.
Moreover, when quickly browsing records using the pager, it could happen that
the resulting displayed thread wasn't the one of the displayed record (if
we visited a record with a long thread history, the RPC to load that history
might return after the one of the current record).
This commit aims to always synchronize the displayed thread with the current
record, by
- directly hide the previous thread when browsing records
- displaying a spinner after 1s to indicate that the thread is loading and
(possibly) not empty
- ensure to only render the thread of the last visited record
Diffstat (limited to 'addons/mail/static/src/xml/chatter.xml')
| -rw-r--r-- | addons/mail/static/src/xml/chatter.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/mail/static/src/xml/chatter.xml b/addons/mail/static/src/xml/chatter.xml index 22931689bde..20df7a52e9c 100644 --- a/addons/mail/static/src/xml/chatter.xml +++ b/addons/mail/static/src/xml/chatter.xml @@ -64,4 +64,8 @@ </div> </t> + <t t-name="mail.ChatterSpinner"> + <div class="o_spinner"> <span class="fa fa-spinner fa-spin"/> </div> + </t> + </templates> |
