diff options
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) { |
