summaryrefslogtreecommitdiff
path: root/addons/website/static/src/snippets/s_image_gallery
diff options
context:
space:
mode:
authorBenjamin Vray <bvr@odoo.com>2020-02-12 10:50:05 +0000
committerqsm-odoo <qsm@odoo.com>2020-07-17 11:28:11 +0000
commitf626130df943e5e0761ce80b1d167734b0ab572b (patch)
treef55b30db69ff9cb9e88b1faea324e7a321363e72 /addons/website/static/src/snippets/s_image_gallery
parentef9cc134b649852a9df81fd3a4c16cb4aee43aa7 (diff)
[IMP] website: split image gallery into 2 different snippets
Snippet image gallery retains only the slideshow mode and a new snippet called 'image wall' takes the 3 other modes. Part of https://github.com/odoo/odoo/pull/45096 task-2162952
Diffstat (limited to 'addons/website/static/src/snippets/s_image_gallery')
-rw-r--r--addons/website/static/src/snippets/s_image_gallery/options.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/website/static/src/snippets/s_image_gallery/options.js b/addons/website/static/src/snippets/s_image_gallery/options.js
index 5a1f0c01d1b..13ad9f93a15 100644
--- a/addons/website/static/src/snippets/s_image_gallery/options.js
+++ b/addons/website/static/src/snippets/s_image_gallery/options.js
@@ -368,6 +368,15 @@ options.registry.gallery = options.Class.extend({
return this._super(...arguments);
},
/**
+ * @private
+ */
+ async _computeWidgetVisibility(widgetName, params) {
+ if (widgetName === 'slideshow_mode_opt') {
+ return false;
+ }
+ return this._super(...arguments);
+ },
+ /**
* Returns the images, sorted by index.
*
* @private