diff options
| author | Jeremy Kersten <jke@odoo.com> | 2020-10-08 07:48:28 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2020-10-08 07:48:30 +0000 |
| commit | 481454e18e6cb1c5da317e12c820975a07d39411 (patch) | |
| tree | b6be95ce924708fa580b9814ad82e706b2403686 /addons/website/static/src | |
| parent | 07b701c581bd960bed42fcf97fae0dfed0332656 (diff) | |
[FIX] website: theme selector, no primary link
Before this commit, the close button in enterprise version was primary (green).
Now we make it black to avoid to have this button like a CTA, and in the same
time, while we have already hacked all this kanban view, we continue changing
the active breadcrumb to a nearly black
closes odoo/odoo#59543
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website/static/src')
| -rw-r--r-- | addons/website/static/src/js/theme_preview_kanban.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website/static/src/js/theme_preview_kanban.js b/addons/website/static/src/js/theme_preview_kanban.js index ddb37b32be7..66cf988b7b6 100644 --- a/addons/website/static/src/js/theme_preview_kanban.js +++ b/addons/website/static/src/js/theme_preview_kanban.js @@ -16,7 +16,7 @@ var ThemePreviewKanbanController = KanbanController.extend(ThemePreviewControlle await this._super(...arguments); this.el.classList.add('o_view_kanban_theme_preview_controller'); const websiteLink = Object.assign(document.createElement('a'), { - className: 'btn btn-secondary ml-3', + className: 'btn btn-secondary ml-3 text-black-75', href: '/', innerHTML: '<i class="fa fa-close"></i>', }); @@ -24,6 +24,7 @@ var ThemePreviewKanbanController = KanbanController.extend(ThemePreviewControlle className: 'mx-2 text-muted', innerHTML: _lt("Don't worry, you can switch later."), }); + this._controlPanelWrapper.el.querySelector('.o_cp_top .o_cp_top_left .breadcrumb li.active').classList.add('text-black-75'); this._controlPanelWrapper.el.querySelector('.o_cp_top').appendChild(websiteLink); this._controlPanelWrapper.el.querySelector('div.o_cp_top_left li').appendChild(smallBreadcumb); }, |
