diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-03-07 15:34:14 +0100 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-03-08 09:30:37 +0100 |
| commit | 60bbce2e53b02f4c408dddb5d2126f77604cdebd (patch) | |
| tree | ee9e725e9d8dc8dffeed8a6ce27ba883be197f72 /addons/mail/static/tests | |
| parent | 4aa5ec3fa511e42a08318fe66dde3bd57f0d1f09 (diff) | |
[FIX] mail: nocontent helper discuss (inbox & starred)
Revision on https://github.com/odoo/odoo/commit/a87d761fdbf345ada5dc93e0a686b08a0f5a0417
From the UX/UI changes above, we also changed the style for empty
inbox and starred in Discuss.
There are two issues with the empty boxes message:
1. The text is not centered at all (one word per line,
and everything is stuck on the left-side of the screen)
2. The style is inconsistent with nocontent message on search
In this commit, inbox and starred use the same style as the no_content
message from a search. The style of the nocontent from a search has been
slightly changed to mimick the intended style for inbox and starred:
- centered text
- title is in bold 125% font size
- other text is not in bold, 115% font size.
Diffstat (limited to 'addons/mail/static/tests')
| -rw-r--r-- | addons/mail/static/tests/discuss_tests.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/mail/static/tests/discuss_tests.js b/addons/mail/static/tests/discuss_tests.js index 4338db1cfaf..6990a04efba 100644 --- a/addons/mail/static/tests/discuss_tests.js +++ b/addons/mail/static/tests/discuss_tests.js @@ -44,10 +44,9 @@ QUnit.test('basic rendering', function (assert) { assert.strictEqual($sidebar.length, 1, "should have rendered a sidebar"); - var $nocontent = discuss.$('.o_mail_chat_content'); - assert.strictEqual($nocontent.length, 1, + assert.strictEqual(discuss.$('.o_mail_chat_content').length, 1, "should have rendered the content"); - assert.strictEqual($nocontent.find('.o_mail_no_content').length, 1, + assert.strictEqual(discuss.$('.o_mail_no_content').length, 1, "should display no content message"); var $inbox = $sidebar.find('.o_mail_chat_channel_item[data-channel-id=channel_inbox]'); |
