Commit 879588b6 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: gadget editor: do not show the maximize button when not embedding a subgadget

parent 9327a770
...@@ -72,6 +72,11 @@ ...@@ -72,6 +72,11 @@
state_dict.editor = 'html_viewer'; state_dict.editor = 'html_viewer';
state_dict.maximize = undefined; state_dict.maximize = undefined;
} }
if (!editor_dict.hasOwnProperty(state_dict.editor)) {
// Do not show the maximize button when not embedding a subgadget
state_dict.maximize = undefined;
}
return this.changeState(state_dict); return this.changeState(state_dict);
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment