Skip to content

Commit

Permalink
Merge branch 'main' into small-i18n-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit authored Oct 1, 2024
2 parents b5ff049 + 34278d4 commit 957f6c7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ the detailed section referring to by linking pull requests or issues.

#### Patch

- Fixed wrong button label stating "Method Parameterization" instead of "Path Parameterization" ([#857](https://github.com/sovity/edc-ui/issues/857))
- Made Custom Http Method mandatory if the corresponding option is chosen ([#739](https://github.com/sovity/edc-ui/issues/739))


### Deployment Migration Notes

_No special deployment migration steps required_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class ContractAgreementTransferDialogForm {
showAllHttpParameterizationFields: [false],

httpProxiedPath: [''],
httpProxiedMethod: [''],
httpProxiedMethod: ['', Validators.required],
httpProxiedQueryParams: this.formBuilder.array(
new Array<FormGroup<HttpDatasourceQueryParamFormModel>>(),
),
Expand All @@ -80,6 +80,8 @@ export class ContractAgreementTransferDialogForm {
const httpAuthByValue = value.httpAuthHeaderType === 'Value';
const httpAuthByVault = value.httpAuthHeaderType === 'Vault-Secret';

const httpProxiedMethod = !!value.showAllHttpParameterizationFields;

return {
dataAddressType: true,

Expand All @@ -101,7 +103,7 @@ export class ContractAgreementTransferDialogForm {
showAllHttpParameterizationFields: !customTransferProcessRequest,

httpProxiedPath: !customTransferProcessRequest,
httpProxiedMethod: !customTransferProcessRequest,
httpProxiedMethod: !customTransferProcessRequest && httpProxiedMethod,
httpProxiedQueryParams: !customTransferProcessRequest,
httpProxiedBody: !customTransferProcessRequest,
httpProxiedBodyContentType: !customTransferProcessRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1 mat-dialog-title>
"
color="accent">
<mat-label>{{
'contract_agreement_page.cus_tranfer' | translate
'contract_agreement_page.cus_transfer' | translate
}}</mat-label>
<textarea matInput [formControl]="ctrl" [placeholder]="'{}'"></textarea>
<mat-error *ngIf="ctrl.invalid && ctrl.errors?.jsonInvalid">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
: ('general.enable' | translate)
}}
{{
'create_data_offer_page.method_parameterization' | translate
'create_data_offer_page.path_parameterization' | translate
}}
</button>
</div>
Expand Down

0 comments on commit 957f6c7

Please sign in to comment.