Skip to content

Commit

Permalink
[FIX] im_livechat: fix button translation for feedback
Browse files Browse the repository at this point in the history
Before this commit, the "Send" button on the feedback form for livechat was not
translatable.

This commit follows 8908de0 which fixed
translations for those templates.

opw-3509309

closes odoo#145550

Signed-off-by: Alexandre Kühn (aku) <[email protected]>
  • Loading branch information
adrienmilis committed Dec 8, 2023
1 parent a9a5f1a commit 58a20d8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions addons/im_livechat/i18n/im_livechat.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,13 @@ msgstr ""
msgid "Seen by:"
msgstr ""

#. module: im_livechat
#. openerp-web
#: code:addons/im_livechat/static/src/legacy/public_livechat.xml:0
#, python-format
msgid "Send"
msgstr ""

#. module: im_livechat
#. openerp-web
#: code:addons/im_livechat/static/src/legacy/public_livechat.xml:0
Expand Down
2 changes: 1 addition & 1 deletion addons/im_livechat/static/src/legacy/public_livechat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ $o-mail-thread-window-zindex: $zindex-modal + 1 !default;
}
}

.o_livechat_rating_reason_button > input {
.o_livechat_rating_reason_button > button {
float: right;
}
}
Expand Down
2 changes: 1 addition & 1 deletion addons/im_livechat/static/src/legacy/public_livechat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="o_livechat_rating_reason">
<textarea id="reason" placeholder="Explain your note"></textarea>
<div class="o_livechat_rating_reason_button">
<input type="button" class="btn btn-primary btn-sm o_rating_submit_button" value="Send" />
<button type="button" class="btn btn-primary btn-sm o_rating_submit_button">Send</button>
</div>
</div>
<div class="o_livechat_email text-left">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ var feedbackStep = [{
run: "text ;-) This was really helpful. Thanks ;-)!"
}, {
content: "Send the feedback",
trigger: "input[type='button'].o_rating_submit_button",
trigger: "button[type='button'].o_rating_submit_button",
}, {
content: "Check if feedback has been sent",
trigger: "div.o_thread_window_header.feedback_sent",
Expand Down

0 comments on commit 58a20d8

Please sign in to comment.