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,6 +205,7 @@ 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
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")