Add some dots if there is a comment thread

This commit is contained in:
Bryan Housel
2018-07-02 00:00:06 -04:00
parent 65b2a42261
commit 13a30c050f
+12
View File
@@ -129,6 +129,18 @@ export function svgNotes(projection, context, dispatch) {
.attr('y', '-22px')
.attr('xlink:href', '#fas-comment-alt');
// add dots if there's a comment thread
notesEnter.selectAll('.thread')
.data(function(d) { return d.comments.length > 1 ? [0] : []; })
.enter()
.append('use')
.attr('class', 'note-shadow thread')
.attr('width', '18px')
.attr('height', '18px')
.attr('x', '-9px')
.attr('y', '-22px')
.attr('xlink:href', '#iD-icon-more');
// update
notes
.merge(notesEnter)