Skip to content
Snippets Groups Projects
Commit 700d41d2 authored by Kartik Chavda's avatar Kartik Chavda
Browse files

[FIX] web: fix new line in confirmation and alert dialog


Steps:
- Install studio.
- Open studio.
- Click on reset default view.

Issue:
- Confirmation dialog body display in single line instead in
multiple lines same thing happens in pos confirmation dialog
also in new friendly message task we need to display error
message in multiple line.

Cause:
- There is a style missing on body of that dialog to preserve
white spaces also need to use other tag then <t> to apply
proper style

Fix:
- Use <p> tag instead <t> tag and add `white-space:pre-wrap;`
to preserve space in that dialogs.

task-3356114

closes odoo/odoo#124953

Signed-off-by: default avatarPierre Paridans (app) <app@odoo.com>
parent 2867a685
Branches
Tags
No related merge requests found
......@@ -3,7 +3,7 @@
<t t-name="web.ConfirmationDialog" owl="1">
<Dialog size="'md'" title="props.title" modalRef="modalRef">
<t t-out="props.body" />
<p t-out="props.body" style="white-space: pre-wrap;"/>
<t t-set-slot="footer" owl="1">
<button class="btn btn-primary" t-on-click="_confirm" t-esc="props.confirmLabel"/>
<button t-if="props.cancel" class="btn btn-secondary" t-on-click="_cancel" t-esc="props.cancelLabel"/>
......@@ -13,7 +13,7 @@
<t t-name="web.AlertDialog" owl="1">
<Dialog size="'sm'" title="props.title" contentClass="props.contentClass">
<t t-out="props.body" />
<p t-out="props.body" style="white-space: pre-wrap;"/>
<t t-set-slot="footer" owl="1">
<button class="btn btn-primary" t-on-click="_confirm" t-esc="props.confirmLabel"/>
<button t-if="props.cancel" class="btn btn-secondary" t-on-click="_cancel" t-esc="props.cancelLabel"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment