mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Only show delete options when thread has more than one message!
This commit is contained in:
parent
798e09f011
commit
59c40ea5cc
1 changed files with 3 additions and 2 deletions
|
@ -205,8 +205,9 @@ script(type='text/ng-template', id='commentEntryTemplate')
|
|||
span.rp-comment-actions(ng-if="comment.user.isSelf && !comment.deleting")
|
||||
| •
|
||||
a(href, ng-click="startEditing(comment)") Edit
|
||||
| •
|
||||
a(href, ng-click="confirmDelete(comment)") Delete
|
||||
span(ng-if="threads[entry.thread_id].messages.length > 1")
|
||||
| •
|
||||
a(href, ng-click="confirmDelete(comment)") Delete
|
||||
span.rp-confim-delete(ng-if="comment.user.isSelf && comment.deleting")
|
||||
| Are you sure?
|
||||
| •
|
||||
|
|
Loading…
Reference in a new issue