-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback permissions #1804
Feedback permissions #1804
Conversation
}, | ||
}); | ||
|
||
Template.singleFeedback.events({ | ||
'click .up-vote': function (event, template) { | ||
'click .up-vote': () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I observed You corrected code which is associated with vote system. I went ahead and merged yours two branch for feedback fixing. Arrow function broken all vote system. Please come back to previous code version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marla-singer can you provide more info or screenshot, how does it break? voting was broken and part of other PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jykae Meteor console error Exception while invoking method 'submitVote' Error: Feedback id is required
.
How to reproduce:
git checkout bugfix/feedback-voting
- Repeat these changes for
feedback/client/single/single.js
- Go to any api, open Feedback tab and try to vote
Possible solution: doesn't use an arrow function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marla-singer ah, it's because arrow function does not work same way with "this", line 80. https://rainsoft.io/when-not-to-use-arrow-functions-in-javascript/
@@ -61,7 +85,7 @@ Template.singleFeedback.events({ | |||
// Submit upvote (+1) for current feedback | |||
Meteor.call('submitVote', feedbackId, 1); | |||
}, | |||
'click .down-vote': function (event, template) { | |||
'click .down-vote': () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please come back to previous code version.
@marla-singer changed arrow functions back to previous. |
@jykae Merge it |
Closes #1744
Closes #1170