fix: Changing team settings should update in other tabs
This commit is contained in:
parent
411a76f9ff
commit
e899616081
|
@ -243,6 +243,10 @@ class SocketProvider extends React.Component<Props> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event.teamIds) {
|
||||||
|
await auth.fetch();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.socket.on("documents.star", (event) => {
|
this.socket.on("documents.star", (event) => {
|
||||||
|
|
|
@ -59,9 +59,8 @@ function Features() {
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
note={
|
note={
|
||||||
<Trans>
|
<Trans>
|
||||||
When enabled multiple people can edit documents at the same time.
|
When enabled multiple people can edit documents at the same time
|
||||||
Please note that this feature is in beta and currently disables
|
with shared presence and live cursors.
|
||||||
updating the document via the API.
|
|
||||||
</Trans>
|
</Trans>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -499,6 +499,17 @@ export default class WebsocketsProcessor {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case "teams.update": {
|
||||||
|
return socketio.to(`team-${event.teamId}`).emit("entities", {
|
||||||
|
event: event.name,
|
||||||
|
teamIds: [
|
||||||
|
{
|
||||||
|
id: event.teamId,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -531,7 +531,7 @@
|
||||||
"Your knowledge base will be accessible at": "Your knowledge base will be accessible at",
|
"Your knowledge base will be accessible at": "Your knowledge base will be accessible at",
|
||||||
"Manage optional and beta features. Changing these settings will affect the experience for all team members.": "Manage optional and beta features. Changing these settings will affect the experience for all team members.",
|
"Manage optional and beta features. Changing these settings will affect the experience for all team members.": "Manage optional and beta features. Changing these settings will affect the experience for all team members.",
|
||||||
"Collaborative editing": "Collaborative editing",
|
"Collaborative editing": "Collaborative editing",
|
||||||
"When enabled multiple people can edit documents at the same time. Please note that this feature is in beta and currently disables updating the document via the API.": "When enabled multiple people can edit documents at the same time. Please note that this feature is in beta and currently disables updating the document via the API.",
|
"When enabled multiple people can edit documents at the same time with shared presence and live cursors.": "When enabled multiple people can edit documents at the same time with shared presence and live cursors.",
|
||||||
"New group": "New group",
|
"New group": "New group",
|
||||||
"Groups can be used to organize and manage the people on your team.": "Groups can be used to organize and manage the people on your team.",
|
"Groups can be used to organize and manage the people on your team.": "Groups can be used to organize and manage the people on your team.",
|
||||||
"All groups": "All groups",
|
"All groups": "All groups",
|
||||||
|
|
Reference in New Issue