summaryrefslogtreecommitdiff
path: root/addons/website/views
diff options
context:
space:
mode:
authorBenjamin Vray <bvr@odoo.com>2020-09-08 12:29:18 +0000
committerqsm-odoo <qsm@odoo.com>2020-10-08 07:41:31 +0000
commitabc61b9e50f7006805dfd038d937464eeb5d424a (patch)
tree34a65ff22b4126c328854116add729cd15bbb2aa /addons/website/views
parentd37f5d68dc55d6d5ffdd08616b7d40471f503249 (diff)
[FIX] website: hide "add images" button when not in edit mode
Hide the add images button of the gallery snippet when not in edit mode. task-2312878 closes odoo/odoo#59330 X-original-commit: 610fb60cf2a5df214c7b40eb19699bd9a868ec8b Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/views')
-rw-r--r--addons/website/views/snippets/s_image_gallery.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website/views/snippets/s_image_gallery.xml b/addons/website/views/snippets/s_image_gallery.xml
index 1b251193b64..06e91519897 100644
--- a/addons/website/views/snippets/s_image_gallery.xml
+++ b/addons/website/views/snippets/s_image_gallery.xml
@@ -6,7 +6,7 @@
data-vcss="001"
data-columns="3" style="height: 500px; overflow: hidden;">
<div class="container">
- <div class="alert alert-info css_editable_mode_display text-center" role="status"><span class="o_add_images" style="cursor: pointer;"><i class="fa fa-plus-circle"/> Add Images</span></div>
+ <div class="alert alert-info css_non_editable_mode_hidden text-center" role="status"><span class="o_add_images" style="cursor: pointer;"><i class="fa fa-plus-circle"/> Add Images</span></div>
</div>
</section>
</template>
@@ -16,7 +16,7 @@
data-vcss="001"
data-columns="3" style="height: 500px; overflow: hidden;">
<div class="container">
- <div class="alert alert-info css_editable_mode_display text-center" role="status"><span class="o_add_images" style="cursor: pointer;"><i class="fa fa-plus-circle"/> Add Images</span></div>
+ <div class="alert alert-info css_non_editable_mode_hidden text-center" role="status"><span class="o_add_images" style="cursor: pointer;"><i class="fa fa-plus-circle"/> Add Images</span></div>
</div>
</section>
</template>