[MOV] mail, *: rename ThreadPreviewView files to ChannelPreviewView
Part of task-2948676. * = im_livechat, rating, test_mail_full Part-of: odoo/odoo#99342
This commit is contained in:
+2
-2
@@ -1,12 +1,12 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { ThreadPreview } from '@mail/components/thread_preview/thread_preview';
|
||||
import { ThreadPreview } from '@mail/components/channel_preview_view/channel_preview_view';
|
||||
|
||||
import { patch } from 'web.utils';
|
||||
|
||||
const components = { ThreadPreview };
|
||||
|
||||
patch(components.ThreadPreview.prototype, 'im_livechat/static/src/components/thread_preview/thread_preview.js', {
|
||||
patch(components.ThreadPreview.prototype, 'im_livechat/static/src/components/channel_preview_view/channel_preview_view.js', {
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Public
|
||||
+1
-1
@@ -4,7 +4,7 @@ import { start, startServer } from '@mail/../tests/helpers/test_utils';
|
||||
|
||||
QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('thread_preview_tests.js');
|
||||
QUnit.module('channel_preview_view_tests.js');
|
||||
|
||||
QUnit.test('mark as read', async function (assert) {
|
||||
assert.expect(6);
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
import { addFields, addRecordMethods, patchRecordMethods } from '@mail/model/model_core';
|
||||
import { attr } from '@mail/model/model_field';
|
||||
// ensure the model definition is loaded before the patch
|
||||
import '@mail/models/thread_preview_view';
|
||||
import '@mail/models/channel_preview_view';
|
||||
|
||||
patchRecordMethods('ThreadPreviewView', {
|
||||
/**
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
import { afterNextRender, start, startServer } from '@mail/../tests/helpers/test_utils';
|
||||
|
||||
QUnit.module('test_mail_full', {}, function () {
|
||||
QUnit.module('thread_preview_tests.js');
|
||||
QUnit.module('channel_preview_view_tests.js');
|
||||
|
||||
QUnit.test('rating value displayed on the thread preview', async function (assert) {
|
||||
assert.expect(4);
|
||||
Reference in New Issue
Block a user