Skip to content

Commit f9ca7e3

Browse files
committed
[FIX] website: remove "add image" button from the normal mode
The "Add image" button was shown out of the editor mode when removing all images from a snippet. task-2469516 closes odoo#71475 X-original-commit: 3bae864 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
1 parent fc8b0c3 commit f9ca7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/website/static/src/snippets/s_image_gallery/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ options.registry.gallery = options.Class.extend({
239239
*/
240240
removeAllImages: function (previewMode) {
241241
var $addImg = $('<div>', {
242-
class: 'alert alert-info css_editable_mode_display text-center',
242+
class: 'alert alert-info css_non_editable_mode_hidden text-center',
243243
});
244244
var $text = $('<span>', {
245245
class: 'o_add_images',

0 commit comments

Comments
 (0)