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) ->
|
_setEveryoneTCState = (newValue, isLocal = false) ->
|
||||||
$scope.reviewPanel.trackChangesOnForEveryone = newValue
|
$scope.reviewPanel.trackChangesOnForEveryone = newValue
|
||||||
for userId, userState of $scope.reviewPanel.trackChangesState
|
for member in $scope.project.members
|
||||||
userState.value = newValue
|
_setUserTCState(member._id, newValue, isLocal)
|
||||||
userState.syncState = if isLocal then UserTCSyncState.PENDING else UserTCSyncState.SYNCED
|
_setUserTCState($scope.project.owner._id, newValue, isLocal)
|
||||||
$scope.editor.wantTrackChanges = newValue
|
|
||||||
|
|
||||||
applyClientTrackChangesStateToServer = () ->
|
applyClientTrackChangesStateToServer = () ->
|
||||||
if $scope.reviewPanel.trackChangesOnForEveryone
|
if $scope.reviewPanel.trackChangesOnForEveryone
|
||||||
|
|
Loading…
Reference in a new issue