Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Notify on 0 iv toggle switch #52

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open

Notify on 0 iv toggle switch #52

wants to merge 12 commits into from

Conversation

thermoscookies
Copy link

Some users want to be notified of 0iv pokemon so this PR allows them to bounce separate from the other minimum iv notification since setting it to 0 would make everything bounce.

@thermoscookies thermoscookies changed the title Notify0 on iv toggle switch Notify on 0 iv toggle switch Jan 3, 2018
Copy link
Owner

@Glennmen Glennmen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please fix travis error (indentation)

static/js/map.js Outdated
@@ -840,6 +842,11 @@ function customizePokemonMarker(marker, item, skipNotification) {
marker.setAnimation(google.maps.Animation.BOUNCE)
}
}
if (Store.get('remember_show_ivzero') && perfection < 1) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would perfection < 1 be good enough? What if the IV is 0.5% (not sure if this is possible).

@Glennmen Glennmen mentioned this pull request Jan 4, 2018
@thermoscookies
Copy link
Author

I'm still learning how to use git, but I changed 'perfection < 1' to 'perfection === 0' and travis seems to be happy and the 0's still bounce.

static/js/map.js Outdated
@@ -840,6 +842,11 @@ function customizePokemonMarker(marker, item, skipNotification) {
marker.setAnimation(google.maps.Animation.BOUNCE)
}
}
if (Store.get('remember_show_ivzero') && perfection === 0) {
if (marker.animationDisabled !== true) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR will only make the markers bounce, it will not send a notification. Is this intended or a mistake?

replaced Store.get call with $selectnotifiyIvZero & enabled notifications for 0 iv's
@thermoscookies
Copy link
Author

@Glennmen do you see anything else you would like me to change for this pr?

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

Successfully merging this pull request may close these issues.

2 participants