Remove add comment button from the mini review panel.

This commit is contained in:
Paulo Reis 2017-03-20 11:35:35 +00:00
parent 2c2abc3cae
commit 8951e91e31
3 changed files with 5 additions and 11 deletions

View file

@ -81,7 +81,6 @@
on-start-new="startNewComment();"
on-submit="submitNewComment(content);"
on-cancel="cancelNewComment();"
on-indicator-click="toggleReviewPanel();"
layout-to-left="reviewPanel.layoutToLeft"
)
@ -322,14 +321,6 @@ script(type='text/ng-template', id='resolvedCommentEntryTemplate')
script(type='text/ng-template', id='addCommentEntryTemplate')
div
.rp-entry-callout.rp-entry-callout-add-comment
.rp-entry-indicator(
ng-if="!commentState.adding"
ng-click="startNewComment(); onIndicatorClick();"
tooltip=translate("add_comment")
tooltip-placement="{{ layoutToLeft ? 'left' : 'right' }}"
tooltip-append-to-body="true"
)
i.fa.fa-commenting
.rp-entry.rp-entry-add-comment(
ng-class="[ (state.isAdding ? 'rp-entry-adding-comment' : ''), (entry.focused ? 'rp-entry-focused' : '')]"
)

View file

@ -7,8 +7,7 @@ define [
scope:
onStartNew: "&"
onSubmit: "&"
onCancel: "&"
onIndicatorClick: "&"
onCancel: "&"
layoutToLeft: "="
link: (scope, element, attrs) ->
scope.state =

View file

@ -568,6 +568,10 @@
border-color: @rp-yellow;
}
}
.rp-state-current-file &-add-comment {
display: none;
}
}
.rp-overview-file-header {