Commit cd9bbb5c authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_web_renderjs_ui: hide or deactivate the button properly

parent f69ee075
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
listbox_button_class = "ui-btn-icon-notext ui-icon-list-alt switch-listbox", listbox_button_class = "ui-btn-icon-notext ui-icon-list-alt switch-listbox",
graphic_button_class = "ui-btn-icon-notext ui-icon-bar-chart-o switch-graph"; graphic_button_class = "ui-btn-icon-notext ui-icon-bar-chart-o switch-graph";
if (gadget.state.hasOwnProperty("enable_graphic")) {
if (gadget.state.enable_graphic) { if (gadget.state.enable_graphic) {
if (!only_graphic) { if (!only_graphic) {
listbox_button_class = listbox_button_class + " " + hide_button_class; listbox_button_class = listbox_button_class + " " + hide_button_class;
...@@ -98,6 +99,9 @@ ...@@ -98,6 +99,9 @@
}) })
]); ]);
} }
} else {
domsugar(graphic_container, []);
}
if (gadget.state.extended_search) { if (gadget.state.extended_search) {
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1007.6115.7683.34611</string> </value> <value> <string>1007.7357.22099.45977</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1679005696.95</float> <float>1679080300.57</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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