update bug json
This commit is contained in:
+18
-3
@@ -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;
|
||||
}
|
||||
|
||||
+22
-20
@@ -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">
|
||||
|
||||
+6
-7
@@ -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[]) => {
|
||||
|
||||
Reference in New Issue
Block a user