Commit 0f1bff69 authored by Gabriel Monnerat's avatar Gabriel Monnerat

fixup! HACK: Hide Configure and Sort buttons

Make sure we have gadget.state.form_id
parent b01d3817
......@@ -774,7 +774,7 @@
div_element.appendChild(button_element);
} else {
if (gadget.state.form_id.indexOf("form_list_sr") === -1) {
if (gadget.state.form_id && gadget.state.form_id.indexOf("form_list_sr") === -1) {
// Add Configure button
// <button {{disabled}} data-rel="configure_columns" data-i18n="Configure" name="Configure" type="button" class="ui-icon-wrench ui-btn-icon-left {{configure_class}}"></button>
button_element = document.createElement('button');
......
......@@ -240,7 +240,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>983.15052.29009.35959</string> </value>
<value> <string>985.12414.11831.36642</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>1586985484.88</float>
<float>1594517926.89</float>
<string>UTC</string>
</tuple>
</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