mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Bulk actions directive; include it in the review panel.
This commit is contained in:
parent
76ea497b33
commit
e2eaf6619e
3 changed files with 36 additions and 1 deletions
|
@ -83,7 +83,10 @@
|
||||||
on-cancel="cancelNewComment();"
|
on-cancel="cancelNewComment();"
|
||||||
)
|
)
|
||||||
div(ng-if="entry.type === 'bulk-actions'")
|
div(ng-if="entry.type === 'bulk-actions'")
|
||||||
| Bulk actions.
|
bulk-actions-entry(
|
||||||
|
on-bulk-accept="bulkAccept();"
|
||||||
|
on-bulk-reject="bulkAccept();"
|
||||||
|
)
|
||||||
|
|
||||||
.rp-entry-list(
|
.rp-entry-list(
|
||||||
ng-if="reviewPanel.subView === SubViews.OVERVIEW"
|
ng-if="reviewPanel.subView === SubViews.OVERVIEW"
|
||||||
|
@ -355,6 +358,23 @@ script(type='text/ng-template', id='addCommentEntryTemplate')
|
||||||
i.fa.fa-comment
|
i.fa.fa-comment
|
||||||
| #{translate("comment")}
|
| #{translate("comment")}
|
||||||
|
|
||||||
|
script(type='text/ng-template', id='bulkActionsEntryTemplate')
|
||||||
|
div
|
||||||
|
.rp-entry-callout.rp-entry-callout-bulk-actions
|
||||||
|
.rp-entry.rp-entry-bulk-actions
|
||||||
|
a.rp-bulk-actions-btn(
|
||||||
|
href
|
||||||
|
ng-click="bulkReject();"
|
||||||
|
)
|
||||||
|
i.fa.fa-times
|
||||||
|
| #{translate("reject_all")}
|
||||||
|
a.rp-bulk-actions-btn(
|
||||||
|
href
|
||||||
|
ng-click="bulkAccept();"
|
||||||
|
)
|
||||||
|
i.fa.fa-check
|
||||||
|
| #{translate("accept_all")}
|
||||||
|
|
||||||
script(type='text/ng-template', id='resolvedCommentsDropdownTemplate')
|
script(type='text/ng-template', id='resolvedCommentsDropdownTemplate')
|
||||||
.resolved-comments
|
.resolved-comments
|
||||||
.resolved-comments-backdrop(
|
.resolved-comments-backdrop(
|
||||||
|
|
|
@ -6,6 +6,7 @@ define [
|
||||||
"ide/review-panel/directives/changeEntry"
|
"ide/review-panel/directives/changeEntry"
|
||||||
"ide/review-panel/directives/commentEntry"
|
"ide/review-panel/directives/commentEntry"
|
||||||
"ide/review-panel/directives/addCommentEntry"
|
"ide/review-panel/directives/addCommentEntry"
|
||||||
|
"ide/review-panel/directives/bulkActionsEntry"
|
||||||
"ide/review-panel/directives/resolvedCommentEntry"
|
"ide/review-panel/directives/resolvedCommentEntry"
|
||||||
"ide/review-panel/directives/resolvedCommentsDropdown"
|
"ide/review-panel/directives/resolvedCommentsDropdown"
|
||||||
"ide/review-panel/directives/reviewPanelCollapseHeight"
|
"ide/review-panel/directives/reviewPanelCollapseHeight"
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
define [
|
||||||
|
"base"
|
||||||
|
], (App) ->
|
||||||
|
App.directive "bulkActionsEntry", () ->
|
||||||
|
restrict: "E"
|
||||||
|
templateUrl: "bulkActionsEntryTemplate"
|
||||||
|
scope:
|
||||||
|
onBulkAccept: "&"
|
||||||
|
onBulkReject: "&"
|
||||||
|
link: (scope, element, attrs) ->
|
||||||
|
scope.bulkAccept = () ->
|
||||||
|
scope.onBulkAccept()
|
||||||
|
scope.bulkReject = () ->
|
||||||
|
scope.onBulkReject()
|
Loading…
Reference in a new issue