mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Merge pull request #3005 from jtbairdsr/master
fix bug that prevents editing or deleting comments
This commit is contained in:
commit
c4a7e53661
1 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ BlazeComponent.extendComponent({
|
|||
{
|
||||
// XXX We should use Popup.afterConfirmation here
|
||||
'click .js-delete-comment'() {
|
||||
const commentId = this.currentData().commentId;
|
||||
const commentId = this.currentData().activity.commentId;
|
||||
CardComments.remove(commentId);
|
||||
},
|
||||
'submit .js-edit-comment'(evt) {
|
||||
|
@ -188,7 +188,7 @@ BlazeComponent.extendComponent({
|
|||
const commentText = this.currentComponent()
|
||||
.getValue()
|
||||
.trim();
|
||||
const commentId = Template.parentData().commentId;
|
||||
const commentId = Template.parentData().activity.commentId;
|
||||
if (commentText) {
|
||||
CardComments.update(commentId, {
|
||||
$set: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue