diff options
| author | xO-Tx <mou@odoo.com> | 2021-01-29 17:23:32 +0000 |
|---|---|---|
| committer | xO-Tx <mou@odoo.com> | 2021-01-29 17:23:32 +0000 |
| commit | 7cc68d465338dd6338aeeba419af25ac84cc9df9 (patch) | |
| tree | 9722070e72406ab95cc3f2fdf123ed23215192c8 /addons/website/static/src/js | |
| parent | 36db3d06e1899b84f74328adef537fed3644f099 (diff) | |
[IMP] website: add theme loader tips
The goal of this commit is to add tips when theme is loaded
to encourage users to follow the tour (in Edit mode).
task-2440450
closes odoo/odoo#65153
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src/js')
| -rw-r--r-- | addons/website/static/src/js/theme_preview_form.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/addons/website/static/src/js/theme_preview_form.js b/addons/website/static/src/js/theme_preview_form.js index 2519da77443..aada899b7a1 100644 --- a/addons/website/static/src/js/theme_preview_form.js +++ b/addons/website/static/src/js/theme_preview_form.js @@ -12,13 +12,6 @@ var qweb = core.qweb; */ const ThemePreviewControllerCommon = { /** - * @override - */ - init() { - this._super(...arguments); - this.$loader = $(qweb.render('website.ThemePreview.Loader')); - }, - /** * Called to add loading effect and install/pdate the selected theme depending on action. * * @private @@ -26,6 +19,9 @@ const ThemePreviewControllerCommon = { * @param {String} action */ _handleThemeAction(res_id, action) { + this.$loader = $(qweb.render('website.ThemePreview.Loader', { + 'showTips': action !== 'button_refresh_theme', + })); let actionCallback = undefined; this._addLoader(); switch (action) { |
