diff --git a/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee b/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee index d46ef404bc..5cdf7c672c 100644 --- a/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee +++ b/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee @@ -41,6 +41,11 @@ define [ $scope.$watch "ui.pdfLayout", (layout) -> $scope.reviewPanel.layoutToLeft = (layout == "flat") + + $scope.$watch "project.features.trackChangesVisible", (visible) -> + return if !visible? + if !visible + $scope.ui.reviewPanelOpen = false $scope.commentState = adding: false