|
@@ -180,7 +180,7 @@ BlazeComponent.extendComponent({
|
|
{
|
|
{
|
|
// XXX We should use Popup.afterConfirmation here
|
|
// XXX We should use Popup.afterConfirmation here
|
|
'click .js-delete-comment'() {
|
|
'click .js-delete-comment'() {
|
|
- const commentId = this.currentData().commentId;
|
|
|
|
|
|
+ const commentId = this.currentData().activity.commentId;
|
|
CardComments.remove(commentId);
|
|
CardComments.remove(commentId);
|
|
},
|
|
},
|
|
'submit .js-edit-comment'(evt) {
|
|
'submit .js-edit-comment'(evt) {
|
|
@@ -188,7 +188,7 @@ BlazeComponent.extendComponent({
|
|
const commentText = this.currentComponent()
|
|
const commentText = this.currentComponent()
|
|
.getValue()
|
|
.getValue()
|
|
.trim();
|
|
.trim();
|
|
- const commentId = Template.parentData().commentId;
|
|
|
|
|
|
+ const commentId = Template.parentData().activity.commentId;
|
|
if (commentText) {
|
|
if (commentText) {
|
|
CardComments.update(commentId, {
|
|
CardComments.update(commentId, {
|
|
$set: {
|
|
$set: {
|