@blinkmobile/angular-location
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -5,2 +5,8 @@ # Changelog | ||
## 2.0.1 (2017-10-17) | ||
### Fixed | ||
- FT-162: Check to see if coords are valid before hiding map | ||
## 2.0.0 (2017-10-17) | ||
@@ -7,0 +13,0 @@ |
@@ -69,2 +69,6 @@ /* @flow */ | ||
isCoordsValid () { | ||
return utils.isCoordsValid(this.coords) | ||
} | ||
onFindMe () { | ||
@@ -92,3 +96,3 @@ geolocation.getCurrentPosition() | ||
this.isEditing = true | ||
if (!this.coords) { | ||
if (!this.isCoordsValid()) { | ||
this.onFindMe() | ||
@@ -118,3 +122,3 @@ } | ||
on-change="$ctrl.onChange(value)" | ||
ng-if="$ctrl.isEditing || $ctrl.coords" | ||
ng-if="$ctrl.isEditing || $ctrl.isCoordsValid()" | ||
></bm-location-on-map> | ||
@@ -121,0 +125,0 @@ |
{ | ||
"name": "@blinkmobile/angular-location", | ||
"description": "Angular 1.x components for maps and geolocation", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "BlinkMobile <developers@blinkmobile.com.au> (https://github.com/blinkmobile)", | ||
"bugs": { | ||
"url": "https://github.com/blinkmobile/angular-location.js/issues" | ||
}, | ||
"contributors": [ | ||
@@ -10,5 +13,2 @@ "Ron Waldon <jokeyrhyme@gmail.com> (https://github.com/jokeyrhyme)", | ||
], | ||
"bugs": { | ||
"url": "https://github.com/blinkmobile/angular-location.js/issues" | ||
}, | ||
"dependencies": { | ||
@@ -15,0 +15,0 @@ "@blinkmobile/geolocation": "^2.0.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
353023
5015