Add thread dots to note header icon, disable comments on closed nodes

This commit is contained in:
Bryan Housel
2018-07-16 16:39:40 -04:00
parent 47de7b304f
commit 694cc60893
4 changed files with 28 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ export function uiNoteEditor(context) {
buttonSection.select('.comment-button') // select and propagate data
.attr('disabled', function(d) {
return d.newComment ? null : true;
return (d.status === 'open' && d.newComment) ? null : true;
})
.on('click.save', function(d) {
this.blur(); // avoid keeping focus on the button - #4641