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

PUS icons in list view disappear if the products are ranked by personal criterion #91

Open
teolemon opened this issue Feb 15, 2024 · 2 comments
Labels
🐛 bug Something isn't working

Comments

@teolemon
Copy link
Member

What

  • PUS icons in list view disappear if the products are ranked by personal criterion

image
image

  • They don't reappear if I disable Personal Sorting
@teolemon teolemon added the 🐛 bug Something isn't working label Feb 15, 2024
@DanieliusAsm
Copy link
Contributor

DanieliusAsm commented Apr 25, 2024

I guess a listener is needed once the switch is pressed. But not only that, you also need to listen to any changes made in "Edit your food preferences" section as the icons will disappear too.

Since any change made there redraws all the products in the list, therefore the buttons disappear.

@teolemon teolemon moved this to 🆕 New in Power User Script Apr 25, 2024
@DanieliusAsm
Copy link
Contributor

#93 will somewhat fix this. Only the switch part and not the food preferences.

That switch appears on the page like 3 seconds later after onLoad gets called... So I used a Timeout callback which gets called after 5secs. Which is a hacky solution and might not work for users that have slower internet speed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants