diff --git a/frontend/src/app/home/pages/location/location.component.html b/frontend/src/app/home/pages/location/location.component.html index 54b6fc2..a4b78b5 100644 --- a/frontend/src/app/home/pages/location/location.component.html +++ b/frontend/src/app/home/pages/location/location.component.html @@ -4,11 +4,20 @@
- - - - +
+ + + + +
+ +
+

+ Nema podataka. +

+
+
diff --git a/frontend/src/app/home/pages/location/location.component.ts b/frontend/src/app/home/pages/location/location.component.ts index 76abdcc..5a626f5 100644 --- a/frontend/src/app/home/pages/location/location.component.ts +++ b/frontend/src/app/home/pages/location/location.component.ts @@ -65,7 +65,7 @@ export class LocationComponent implements OnInit { this.locations = locations; this.loadMarkers(); }, - error: err => console.error('Observable emitted an error: ' + err), + error: err => this.loading = false, complete: () => this.loading = false }); } diff --git a/frontend/src/environments/environment.ts b/frontend/src/environments/environment.ts index 30ba284..fe36f2f 100644 --- a/frontend/src/environments/environment.ts +++ b/frontend/src/environments/environment.ts @@ -1,4 +1,4 @@ export const environment = { production: false, - apiUrl: 'http://localhost:5500/api' + apiUrl: 'http://localhost:4000/api' };