Skip to content

Commit

Permalink
fixup! [IMP] web_chatter_position: improve function compile
Browse files Browse the repository at this point in the history
  • Loading branch information
trisdoan committed Aug 5, 2024
1 parent b265b83 commit 4cc57c7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ patch(FormCompiler.prototype, {
// (except if there is an attachment viewer, as we have to force bottom)
} else if (odoo.web_chatter_position === "sided") {
setAttributes(chatterContainerXml, {
isInFormSheetBg: "false",
isChatterAside: "true",
isInFormSheetBg: `__comp__.uiService.size < ${SIZES.XXL}`,
isChatterAside: `__comp__.uiService.size >= ${SIZES.XXL}`,
});
setAttributes(chatterContainerHookXml, {
"t-attf-class": "o-aside",
"t-attf-class": `{{ __comp__.uiService.size >= ${SIZES.XXL} ? "o-aside" : "" }}`,
});
// For "bottom", we keep the chatter in the form sheet
// (the one used for the attachment viewer case)
Expand Down

0 comments on commit 4cc57c7

Please sign in to comment.