diff --git a/addons/mail/static/src/components/chat_window_header/chat_window_header.js b/addons/mail/static/src/components/chat_window_header/chat_window_header.js index 27ec8907e8b..0637391ca46 100644 --- a/addons/mail/static/src/components/chat_window_header/chat_window_header.js +++ b/addons/mail/static/src/components/chat_window_header/chat_window_header.js @@ -21,16 +21,6 @@ export class ChatWindowHeader extends Component { return this.messaging && this.messaging.models['ChatWindow'].get(this.props.chatWindowLocalId); } - /** - * @returns {string} - */ - get shiftNextText() { - if (this.messaging.locale.textDirection === 'rtl') { - return this.env._t("Shift left"); - } - return this.env._t("Shift right"); - } - /** * @returns {string} */ diff --git a/addons/mail/static/src/components/chat_window_header/chat_window_header.xml b/addons/mail/static/src/components/chat_window_header/chat_window_header.xml index 64080d261e8..e8bc331fc15 100644 --- a/addons/mail/static/src/components/chat_window_header/chat_window_header.xml +++ b/addons/mail/static/src/components/chat_window_header/chat_window_header.xml @@ -62,7 +62,7 @@ -
+
diff --git a/addons/mail/static/src/models/chat_window/chat_window.js b/addons/mail/static/src/models/chat_window/chat_window.js index 94fb8e794a6..f5636257b67 100644 --- a/addons/mail/static/src/models/chat_window/chat_window.js +++ b/addons/mail/static/src/models/chat_window/chat_window.js @@ -293,6 +293,16 @@ registerModel({ _computeNewMessageFormInputPlaceholder() { return this.env._t("Search user..."); }, + /** + * @private + * @returns {string} + */ + _computeShiftNextText() { + if (this.messaging.locale.textDirection === 'rtl') { + return this.env._t("Shift left"); + } + return this.env._t("Shift right"); + }, /** * @private * @returns {ThreadViewer} @@ -476,6 +486,9 @@ registerModel({ newMessageFormInputPlaceholder: attr({ compute: '_computeNewMessageFormInputPlaceholder', }), + shiftNextText: attr({ + compute: '_computeShiftNextText', + }), /** * Determines the `Thread` that should be displayed by `this`. * If no `Thread` is linked, `this` is considered "new message".