Commit 3bc075bf authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: fixup activity watcher

parent 54929d3b
...@@ -127,8 +127,12 @@ ...@@ -127,8 +127,12 @@
//Exception is raised if network is lost for some reasons, //Exception is raised if network is lost for some reasons,
//in this case, try patiently until network is back. //in this case, try patiently until network is back.
console.warn("Unable to fetch activities from ERP5", error); console.warn("Unable to fetch activities from ERP5", error);
form_gadget.element.querySelector(".activity_watcher_gadget") return form_gadget.getDeclaredGadget('html_viewer')
.textContent = "Unable to fetch activities from ERP5"; .push(function (html_viewer) {
return html_viewer.render({
value: "Unable to fetch activities from ERP5"
});
});
}); });
}, 1000); }, 1000);
......
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