update bug json

This commit is contained in:
2025-02-04 10:38:59 +01:00
parent 23dbfff014
commit a9cd2a6018
10 changed files with 126 additions and 105 deletions
@@ -1,4 +1,19 @@
.example-card {
.example-card {
margin-bottom: 8px;
}
}
.description-item {
height: auto !important;
min-height: 48px !important;
}
.description-container {
max-height: 150px;
overflow-y: auto;
/* padding: 8px 0; */
}
.description-text {
white-space: pre-wrap !important;
word-wrap: break-word;
line-height: 1.5;
}
@@ -1,29 +1,31 @@
<mat-card>
<mat-card-header>
<mat-card-title>Lot</mat-card-title>
<mat-card-subtitle>Lot informations</mat-card-subtitle>
<mat-card-title>Lot</mat-card-title>
</mat-card-header>
<mat-card-content>
<div fxLayout="row" fxLayoutGap="5px">
<mat-list>
<mat-list-item>
<span matListItemTitle>#</span>
<span matListItemLine>{{Lot.lotNumber}}</span>
</mat-list-item>
<mat-list-item>
<span matListItemTitle>Title</span>
<span matListItemLine>{{Lot.title}}</span>
</mat-list-item>
<mat-list-item>
<span matListItemTitle>Description</span>
<span matListItemLine [innerHTML]="getSafeDescription()"></span>
</mat-list-item>
<mat-list-item>
<span matListItemTitle>Estimate</span>
<span matListItemLine>Low: {{Lot.EstimateLow}} | High: {{Lot.EstimateHigh}} </span>
</mat-list-item>
</mat-list>
<div fxLayout="column" fxLayoutGap="2px">
<p><b>#</b> {{Lot.lotNumber}}</p>
</div>
<div fxLayout="column" fxLayoutGap="2px">
<p><b>Title</b> {{Lot.title}}</p>
</div>
</div>
<div fxLayout="row" fxLayoutGap="5px">
<div fxLayout="column" fxLayoutGap="2px">
<p><b>Estimate</b> [{{Lot.EstimateLow}} - {{Lot.EstimateHigh}}]</p>
</div>
</div>
<div fxLayout="row" fxLayoutGap="5px">
<mat-list>
<mat-list-item class="description-item">
<span matListItemTitle>Description</span>
<div class="description-container">
<span matListItemLine class="description-text" [innerHTML]="getSafeDescription()"></span>
</div>
</mat-list-item>
</mat-list>
</div>
<div fxLayout="row" fxLayoutGap="5px">
<table mat-table [dataSource]="bids" class="mat-elevation-z8">
@@ -78,24 +78,23 @@ export class SaleDetailPageComponent implements OnInit, AfterViewInit {
this.route.paramMap.subscribe(params => {
this.id = params.get('id');
this.getSale();
this.getLotList();
this.refresh();
});
}
ngAfterViewInit(): void {
}
refresh(): void {
this.getSale();
this.getLotList();
}
getSale(){
this.apiSaleService.getSale(this.id).subscribe((sale: Sale) => {
this.Sale = sale;
});
}
refresh(): void {
this.getLotList();
}
}
getLotList(){
this.apiLotService.getLotsBySale(this.id).subscribe((lotList: Lot[]) => {