Skip to content
Snippets Groups Projects
Commit 270bccc5 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

Merge branch 'fix-types-errors' into 'dev'

chore(types): fix types errors

See merge request !484
parents 94b4f887 3a1cf3dc
No related branches found
No related tags found
2 merge requests!525V2.3.0,!484chore(types): fix types errors
......@@ -18,7 +18,6 @@ export class SearchBarComponent implements OnInit, OnChanges {
@Output() searchEvent = new EventEmitter<SearchQuery>();
@Output() shouldLoad = new EventEmitter<boolean>();
public locate = false;
public addStructureFormModal = false;
public buttonTypeEnum = ButtonType;
public searchForm: FormGroup;
......
......@@ -52,7 +52,7 @@ export class CartoComponent implements OnInit {
this.getAddress(this.userLongitude, this.userLatitude);
}
if (navigator.geolocation) {
this.getLocation(this.filters);
this.getLocation();
}
}
......@@ -174,7 +174,7 @@ export class CartoComponent implements OnInit {
return structure;
}
public getLocation(filters: Filter[]): void {
public getLocation(): void {
navigator.geolocation.getCurrentPosition((position) => {
this.geolocation = true;
if (!this.userLongitude && !this.userLatitude) {
......
......@@ -19,7 +19,6 @@ export class StructureListSearchComponent implements OnInit {
@Output() searchEvent = new EventEmitter();
@Input() filters: Filter[] = [];
public utils = new Utils();
public locate = false;
// Show/hide form createStructure
public buttonTypeEnum = ButtonType;
......
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