mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Make sure TC state is applied to all users on load.
This commit is contained in:
parent
fbce49f5cd
commit
029ab8d2f1
1 changed files with 3 additions and 4 deletions
|
@ -610,10 +610,9 @@ define [
|
|||
|
||||
_setEveryoneTCState = (newValue, isLocal = false) ->
|
||||
$scope.reviewPanel.trackChangesOnForEveryone = newValue
|
||||
for userId, userState of $scope.reviewPanel.trackChangesState
|
||||
userState.value = newValue
|
||||
userState.syncState = if isLocal then UserTCSyncState.PENDING else UserTCSyncState.SYNCED
|
||||
$scope.editor.wantTrackChanges = newValue
|
||||
for member in $scope.project.members
|
||||
_setUserTCState(member._id, newValue, isLocal)
|
||||
_setUserTCState($scope.project.owner._id, newValue, isLocal)
|
||||
|
||||
applyClientTrackChangesStateToServer = () ->
|
||||
if $scope.reviewPanel.trackChangesOnForEveryone
|
||||
|
|
Loading…
Reference in a new issue