-
Notifications
You must be signed in to change notification settings - Fork 69
Notify on 0 iv toggle switch #52
base: develop
Are you sure you want to change the base?
Conversation
…php or map.common.js
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.
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) { |
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.
Would perfection < 1 be good enough? What if the IV is 0.5% (not sure if this is possible).
chaned 'perfection < 1' to 'perfection == 0'
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) { |
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.
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
@Glennmen do you see anything else you would like me to change for this pr? |
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.