update message component, bugfixes
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
@for (listing of listings; track listing.id) {
|
||||
<div class="bg-white rounded-lg shadow-md overflow-hidden">
|
||||
@if (listing.imageOrder?.length>0){
|
||||
<img src="{{ env.imageBaseUrl }}/pictures/property/{{ listing.imagePath }}/{{ listing.serialId }}/{{ listing.imageOrder[0] }}?_ts={{ ts }}" alt="Image" class="w-full h-48 object-cover" />
|
||||
<img src="{{ env.imageBaseUrl }}/pictures/property/{{ listing.imagePath }}/{{ listing.serialId }}/{{ listing.imageOrder[0] }}?_ts={{ getTS() }}" alt="Image" class="w-full h-48 object-cover" />
|
||||
} @else {
|
||||
<img src="assets/images/placeholder_properties.jpg" alt="Image" class="w-full h-48 object-cover" />
|
||||
}
|
||||
|
||||
@@ -34,7 +34,6 @@ export class CommercialPropertyListingsComponent {
|
||||
statesSet = new Set();
|
||||
state: string;
|
||||
totalRecords: number = 0;
|
||||
ts = new Date().getTime();
|
||||
env = environment;
|
||||
page = 1;
|
||||
pageCount = 1;
|
||||
@@ -85,4 +84,7 @@ export class CommercialPropertyListingsComponent {
|
||||
reset() {
|
||||
this.criteria.title = null;
|
||||
}
|
||||
getTS() {
|
||||
return new Date().getTime();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user