Skip to content
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

Question on determining if user voted already. #27

Open
jsobers1331 opened this issue Aug 20, 2016 · 1 comment
Open

Question on determining if user voted already. #27

jsobers1331 opened this issue Aug 20, 2016 · 1 comment

Comments

@jsobers1331
Copy link

How can I make the Thumbs up or Thumbs down be highlighted or a different color if current user has voted already?

@chiliec
Copy link
Owner

chiliec commented Aug 22, 2016

Good question, but in current implementation you can't call one method and know that user has voted already. This lines respond to this functionality https://github.com/Chiliec/yii2-vote/blob/master/actions/VoteAction.php#L43-L47 and it can be moved to a separate method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants