Skip to content

Commit 704a9ed

Browse files
committed
#422765 - Removed comments and unused variables
1 parent 849482c commit 704a9ed

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed

src/app/pages/catalog/catalog-browser/catalog-browser.component.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
<mat-icon>close</mat-icon>
99
</button>
1010
</mat-form-field>
11-
12-
<!-- <button mat-button (click)="onSearch()">Search</button> -->
1311
</div>
1412

1513
<div fxLayout="row wrap" fxLayoutGap="15px" fxLayoutAlign="start start">
@@ -36,16 +34,12 @@
3634

3735
<mat-divider></mat-divider>
3836
<mat-card-actions class="card-actions">
39-
<!-- <button
40-
[disabled]="isBusy(dataOffer) || isNegotiated(dataOffer)"
41-
color="accent" mat-stroked-button> -->
4237
<button color="accent" mat-stroked-button
4338
(click)="viewContractOffers(dataOffer.assetId, dataOffer.contractOffers, dataOffer.originator, dataOffer.properties)">
4439
View details and contract offers
4540
</button>
4641
</mat-card-actions>
4742
<mat-card-footer>
48-
<!-- <mat-progress-bar *ngIf="isBusy(dataOffer)" color="accent" mode="indeterminate"></mat-progress-bar> -->
4943
</mat-card-footer>
5044
</mat-card>
5145
</div>

src/app/pages/catalog/contract-offers-viewer/contract-offers-viewer.component.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
--mdc-elevated-card-container-color: #474747;
33
}
44

5-
// mat-progress-bar {
6-
// margin-bottom: -20px;
7-
// }
8-
95
mat-card-title{
106
padding: 20px;
117
color: white;

src/app/pages/catalog/contract-offers-viewer/contract-offers-viewer.component.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ interface RunningTransferProcess {
2929
export class ContractOffersViewerComponent {
3030

3131
runningTransferProcesses: RunningTransferProcess[] = [];
32-
runningNegotiations: Map<string, NegotiationResult> = new Map<string, NegotiationResult>(); // contractOfferId, NegotiationResult
33-
finishedNegotiations: Map<string, ContractNegotiation> = new Map<string, ContractNegotiation>(); // contractOfferId, contractAgreementId
32+
runningNegotiations: Map<string, NegotiationResult> = new Map<string, NegotiationResult>();
33+
finishedNegotiations: Map<string, ContractNegotiation> = new Map<string, ContractNegotiation>();
3434

3535
private pollingHandleNegotiation?: any;
3636

@@ -82,11 +82,9 @@ export class ContractOffersViewerComponent {
8282
if (!this.pollingHandleNegotiation) {
8383
// there are no active negotiations
8484
this.pollingHandleNegotiation = setInterval(() => {
85-
// const finishedNegotiations: NegotiationResult[] = [];
86-
8785
for (const negotiation of this.runningNegotiations.values()) {
8886
this.apiService.getNegotiationState(negotiation.id).subscribe(updatedNegotiation => {
89-
if (finishedNegotiationStates.includes(updatedNegotiation.state!)) {
87+
if (finishedNegotiationStates.includes(updatedNegotiation.state)) {
9088
let offerId = negotiation.offerId;
9189
this.runningNegotiations.delete(offerId);
9290
if (updatedNegotiation["state"] === "VERIFIED") {

src/app/pages/contracts/contract-viewer/contract-viewer.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ export class ContractViewerComponent implements OnInit {
3434
private pollingHandleTransfer?: any;
3535

3636
constructor(private contractAgreementService: ContractAgreementService,
37-
private assetService: AssetService,
3837
public dialog: MatDialog,
39-
@Inject('HOME_CONNECTOR_STORAGE_ACCOUNT') private homeConnectorStorageAccount: string,
40-
private transferService: TransferProcessService,
4138
private catalogService: CatalogBrowserService,
4239
private router: Router,
4340
private notificationService: NotificationService) {
@@ -74,7 +71,6 @@ export class ContractViewerComponent implements OnInit {
7471
* @param assetId Asset ID of the asset that is associated with the contract.
7572
*/
7673
private getContractOfferForAssetId(assetId: string): Observable<DataOffer> {
77-
//return this.catalogService.getContractOffers()
7874
return this.catalogService.getDataOffers()
7975
.pipe(
8076
map(offers => offers.find(o => o.assetId === assetId)),

0 commit comments

Comments
 (0)