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

fix: Hide rating on notes #4278

Merged

Conversation

boc-the-git
Copy link
Collaborator

What type of PR is this?

  • bug

What this PR does / why we need it:

I saw that note only "recipes" only the meal planner were allowing me to give a rating.. which resulted in a 400 or 404 (can't remember).
This stops the rating from appearing (making it similar to favourite which was already hidden).

Before:
Screenshot from 2024-09-28 15-27-56

After:
Screenshot from 2024-09-28 15-28-30

Which issue(s) this PR fixes:

None.

Special notes for your reviewer:

The favourites badge a couple lines above this code has a limitation of isOwnGroup, whereas rating doesn't. I believe that was intentional from Michael when initially implementing per-user ratings.

Testing

The screenshots basically. Confirmed no impact against a real recipe.

@boc-the-git
Copy link
Collaborator Author

I'll have more time to deal with the merge conflict later tonight.

@michael-genson
Copy link
Collaborator

IIRC the component handles whether or not you can set a rating, which is why it's not hidden from users from other groups (so they can still see the rating, just not set it)

@michael-genson michael-genson enabled auto-merge (squash) September 28, 2024 14:57
@michael-genson michael-genson merged commit 8fe1b0c into mealie-recipes:mealie-next Sep 28, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants