Only show delete options when thread has more than one message!

This commit is contained in:
James Allen 2017-01-24 17:03:32 +01:00
parent 798e09f011
commit 59c40ea5cc

View file

@ -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?
| •