mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 11:14:14 -05:00
Merge pull request #579 from sharelatex/sk-tc-toggle-access-control
Disallow toggling track-changes via keyboard if not available on project
This commit is contained in:
commit
2c8e16ff4a
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ define [
|
||||||
applyTrackChangesStateToClient(state)
|
applyTrackChangesStateToClient(state)
|
||||||
|
|
||||||
$scope.toggleTrackChangesFromKbdShortcut = () ->
|
$scope.toggleTrackChangesFromKbdShortcut = () ->
|
||||||
if !$scope.project.features.trackChangesVisible
|
if !($scope.project.features.trackChangesVisible && $scope.project.features.trackChanges)
|
||||||
return
|
return
|
||||||
$scope.toggleTrackChangesForUser !$scope.reviewPanel.trackChangesState[ide.$scope.user.id].value, ide.$scope.user.id
|
$scope.toggleTrackChangesForUser !$scope.reviewPanel.trackChangesState[ide.$scope.user.id].value, ide.$scope.user.id
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue