Skip to content

Commit

Permalink
feat: Add Contract Offer Id Element back to the Catalog Browser Detai…
Browse files Browse the repository at this point in the history
…l Dialog (#817)
  • Loading branch information
illfixit authored Sep 11, 2024
1 parent 05d80c8 commit dc4318a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ the detailed section referring to by linking pull requests or issues.

#### Patch

- Data Offer details now display the contract ID for each contract offer

## [v4.1.3] - 2024-09-03

### Overview
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
</mat-progress-spinner>
</div>

<property-grid
class="mb-3"
[columns]="1"
[props]="
contractOfferIdGroup(contractOffer.contractOfferId)
"></property-grid>

<property-grid
[columns]="3"
[props]="contractOffer.properties"></property-grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
import {DataOffer} from 'src/app/core/services/models/data-offer';
import {ContractNegotiationService} from '../../../core/services/contract-negotiation.service';
import {ContractOffer} from '../../../core/services/models/contract-offer';
import {PropertyGridField} from '../../property-grid/property-grid/property-grid-field';

@Component({
selector: 'contract-offer-mini-list',
Expand All @@ -25,4 +26,15 @@ export class ContractOfferMiniListComponent {
negotiateClick = new EventEmitter<ContractOffer>();

constructor(public contractNegotiationService: ContractNegotiationService) {}

contractOfferIdGroup(id: string): PropertyGridField[] {
return [
{
icon: 'category',
label: 'Contract Offer Id',
text: this.data.contractOffers.find((it) => it.contractOfferId == id)
?.contractOfferId,
},
];
}
}

0 comments on commit dc4318a

Please sign in to comment.