diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index 189e027d82b..8949108d944 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -759,6 +759,9 @@ var SnippetEditor = Widget.extend({ if (!val.selector.is(this.$target)) { return; } + if (val.data.string) { + $optionsSection[0].querySelector('we-title > span').textContent = val.data.string; + } if (val['drop-near']) { this.selectorSiblings.push(val['drop-near']); } diff --git a/addons/web_editor/views/snippets.xml b/addons/web_editor/views/snippets.xml index 65c369df0d4..91e1c96c2a4 100644 --- a/addons/web_editor/views/snippets.xml +++ b/addons/web_editor/views/snippets.xml @@ -222,7 +222,7 @@ /> -