Reflow review panel layout when adding a comment

This commit is contained in:
James Allen 2016-11-16 16:03:06 +00:00
parent 5d414e9a1b
commit beab95a871

View file

@ -45,22 +45,25 @@ define [
$scope.startNewComment = () ->
$scope.commentState.adding = true
$scope.$broadcast "comment:select_line"
$timeout () ->
$scope.$broadcast "review-panel:layout"
$scope.submitNewComment = () ->
$scope.commentState.adding = false
$scope.$broadcast "comment:add", $scope.commentState.content
$scope.commentState.content = ""
$timeout () ->
$scope.$broadcast "review-panel:layout"
$scope.cancelNewComment = (entry) ->
$scope.commentState.adding = false
$scope.commentState.content = ""
$timeout () ->
$scope.$broadcast "review-panel:layout"
$scope.startReply = (entry) ->
entry.replying = true
$timeout () ->
$scope.$broadcast "review-panel:layout"
# $scope.handleCommentReplyKeyPress = (ev, entry) ->