Skip to content

Commit 6e5a9ff

Browse files
agau-odoodetrouxdev
authored andcommitted
[IMP] web_editor: use forceNoDeleteButton in owl options
task-3850413
1 parent b5098a2 commit 6e5a9ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

addons/web_editor/static/src/js/editor/snippets.editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,7 @@ var SnippetEditor = Widget.extend({
852852
option.isOwl = true;
853853
option.renderingComponent ??= (optionClass).defaultRenderingComponent;
854854
option.renderingComponent.components = Object.fromEntries(registry.category("snippet_widgets").getEntries());
855+
option.forceNoDeleteButton = option.instance.forceNoDeleteButton ?? (optionClass).forceNoDeleteButton;
855856
if (option.Class?.displayOverlayOptions) {
856857
option.displayOverlayOptions = true;
857858
}

0 commit comments

Comments
 (0)