u
This commit is contained in:
@@ -182,6 +182,15 @@ function connect() {
|
||||
|
||||
const es = new EventSource(url.href, { withCredentials: true });
|
||||
|
||||
addTrackedListener(es, 'company', () => {
|
||||
const comp = Automat.get('company');
|
||||
if (comp?.actions?.reload) {
|
||||
void comp.actions.reload().catch((err) => {
|
||||
console.error('[sse] company refresh failed', err);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Category tree changed: refresh the tree and every open category view.
|
||||
addTrackedListener(es, 'category', () => {
|
||||
const cat = Automat.get('category');
|
||||
|
||||
Reference in New Issue
Block a user