Skip to content
Snippets Groups Projects
Commit ea8df827 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Profile: city must be required if street has been filled

parent 910d7850
No related branches found
No related tags found
No related merge requests found
# Version v1.3.0
# Version v1.3.0
## Desktop version
- Fix error "Expected buffer" when authenticate - fix #790
\ No newline at end of file
- [enh] Display logs in terminal
- [enh] Add option `--debug` to show debug logs
- [fix] Fix error "Expected buffer" when authenticate - fix [#790](https://git.duniter.org/clients/cesium-grp/cesium/issues/790)
- [fix] Do not try to open Dev tools, when NW is not a SDK version (e.g. production mode)
\ No newline at end of file
Subproject commit 51d9630735dbb138d8bea53fbeae3f85d33b6681
Subproject commit 3273ea59ac91cada3450021dc126403bca8f0ab9
......@@ -362,6 +362,7 @@
"POSITION": "lat/lon : {{lat}} / {{lon}}"
},
"ERROR": {
"CITY_REQUIRED_IF_STREET": "Required if a street has been filled",
"REQUIRED_FOR_LOCATION": "Required field to appear on the map",
"INVALID_FOR_LOCATION": "Unknown address",
"GEO_LOCATION_FAILED": "Unable to retrieve your current position. Please use the search button.",
......
......@@ -362,6 +362,7 @@
"POSITION": "lat/lon : {{lat}} / {{lon}}"
},
"ERROR": {
"CITY_REQUIRED_IF_STREET": "Required if a street has been filled",
"REQUIRED_FOR_LOCATION": "Required field to appear on the map",
"INVALID_FOR_LOCATION": "Unknown address",
"GEO_LOCATION_FAILED": "Unable to retrieve your current position. Please use the search button.",
......
......@@ -409,6 +409,7 @@
"POSITION": "Latitud/Longitud : {{lat}} / {{lon}}"
},
"ERROR": {
"CITY_REQUIRED_IF_STREET": "Requerido si una calle ha sido llenada",
"REQUIRED_FOR_LOCATION": "Campo obligatorio para aparecer en el mapa",
"INVALID_FOR_LOCATION": "Dirección desconocida",
"GEO_LOCATION_FAILED": "No se puede recuperar su ubicación Por favor usa el botón de búsqueda.",
......
......@@ -413,6 +413,7 @@
"POSITION": "Lat/Lon : {{lat}}/{{lon}}"
},
"ERROR": {
"CITY_REQUIRED_IF_STREET": "Champ obligatoire (car une rue est saisie)",
"REQUIRED_FOR_LOCATION": "Champ obligatoire pour apparaître sur la carte",
"INVALID_FOR_LOCATION": "Adresse inconnue",
"GEO_LOCATION_FAILED": "Impossible de récupérer votre position. Veuillez utiliser le bouton de recherche.",
......
<div class="item item-divider" translate>LOCATION.LOCATION_DIVIDER</div>
<!-- address -->
<!-- street -->
<ion-item class="item-input item-floating-label item-button-right">
<span class="input-label">{{'LOCATION.ADDRESS' | translate}}</span>
<textarea placeholder="{{'LOCATION.ADDRESS_HELP' | translate}}"
......@@ -17,6 +17,7 @@
<input type="text" placeholder="{{'LOCATION.CITY_HELP'|translate}}"
ng-model="formData.city"
ng-model-options="{ updateOn: 'blur' }"
required-if="formData.address"
ng-change="onCityChanged()">
</div>
<input type="hidden"
......@@ -24,6 +25,13 @@
ng-model="formData.geoPoint"
required-if="formPosition.enable"
geo-point>
<div class="form-errors"
ng-show="form.$submitted && form.city.$error"
ng-messages="form.city.$error">
<div class="form-error" ng-message="required">
<span translate="LOCATION.ERROR.CITY_REQUIRED_IF_STREET"></span>
</div>
</div>
<div class="form-errors"
ng-show="form.$submitted && form.geoPoint.$error"
ng-messages="form.geoPoint.$error">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment