[FIX] website: adapt "Edit" and "Translate" systray items to dark mode
When the dark mode feature was merged with [1], it adapted the EditWebsiteSystray item with the 'text-reset' class. But this class was not removed if the website was translatable, and it was not added on the TranslateWebsiteSystray item, which was leading to wrongly colored systray items on a translatable website. [1]: https://github.com/odoo/odoo/commit/ee3aa3054cdd715720466863239d5aa56186946c X-original-commit: 9bc4987d8a4a3d1e5ff31d6e2fd3ea4b453fe21c Part-of: odoo/odoo#103562
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<templates xml:space="preserve">
|
||||
<t t-name="website.EditWebsiteSystray" owl="1">
|
||||
<div class="o_edit_website_container d-none d-md-block" t-att-class="{ o_translatable: translatable }">
|
||||
<a href="#" accesskey="a" t-on-click="startEdit" class="text-reset">
|
||||
<a href="#" accesskey="a" t-on-click="startEdit" t-att-class="{ 'text-reset': !translatable }">
|
||||
<span t-if="translatable" class="fa fa-pencil me-2"/>
|
||||
<span t-else="" class="fa me-2" t-att-class="{ 'fa-refresh fa-spin': this.state.isLoading, 'fa-pencil': !this.state.isLoading }"/>
|
||||
<t t-esc="label"/>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<t t-name="website.TranslateWebsiteSystray" owl="1">
|
||||
<div class="o_translate_website_container d-none d-md-block">
|
||||
<a href="#" accesskey="t" t-on-click="startTranslate">
|
||||
<a href="#" accesskey="t" t-on-click="startTranslate" class="text-reset">
|
||||
<span t-if="websiteContext.translation" class="fa fa-refresh fa-spin me-2"/>
|
||||
TRANSLATE
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user