Open the correct doc on tracked change click in overview (#7622)

GitOrigin-RevId: 7bef9341c315f350c5428f8c94ce84cbc4f850c5
This commit is contained in:
Alf Eaton 2022-04-22 10:44:26 +01:00 committed by Copybot
parent b70e63e893
commit e096bf051a
3 changed files with 1 additions and 3 deletions

View file

@ -208,7 +208,7 @@
aggregate-change-entry(
entry="entry"
user="users[entry.metadata.user_id]"
ng-click="gotoEntry(editor.open_doc_id, entry)"
ng-click="gotoEntry(doc.doc.id, entry)"
permissions="permissions"
)

View file

@ -134,7 +134,6 @@ export default App.controller(
$timeout(() => $scope.$broadcast('review-panel:layout'))
)
// TODO: unused?
$scope.$on('review-panel:sizes', (e, sizes) =>
$scope.$broadcast('editor:set-scroll-size', sizes)
)

View file

@ -184,7 +184,6 @@ export default App.directive('reviewPanelSorted', $timeout => ({
overflowTop = 0
}
// TODO: unused?
return scope.$emit('review-panel:sizes', {
overflowTop,
height: previousBottom + OVERVIEW_TOGGLE_HEIGHT,