fix: "disconnect" cluster from clusters context-menu

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-07-21 13:22:54 +03:00
1 parent 70bbb9fa62
commit a40a9fec0e
3 files changed
+14 -11

No files matched your search

+5 -4
View File
@@ -334,13 +334,14 @@ export class Cluster implements ClusterModel {
})
}
pushState = (clusterState = this.getState()) => {
logger.debug(`[CLUSTER]: push-state`, clusterState);
pushState = (state = this.getState()): ClusterState => {
logger.debug(`[CLUSTER]: push-state`, state);
broadcastIpc({
// webContentId: viewId, // todo: send to cluster-view only
channel: "cluster:state",
args: [clusterState],
})
args: [state],
});
return state;
}
// get cluster system meta, e.g. use in "logger"