Fix Job Parameters (#1857)

Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
José Alberto Hernández
2023-08-31 17:52:55 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent 292a91ad00
commit a1b39fbb0d
6 changed files with 11 additions and 11 deletions
@@ -5,7 +5,7 @@
<div *ngFor="let job of selectedJobs">
<mifosx-custom-parameters-table
[displayName]="job.displayName"
[jobId]="job.id"
[jobId]="job.jobId"
[jobParameters]="job.jobParameters"
(retrieveData)="runSelectedJobs($event)"
>
@@ -20,8 +20,8 @@ export interface RunJobWithParamPayloadType {
}
export interface JobParameterType {
jobParameterName: string;
jobParameterValue: string;
parameterName: string;
parameterValue: string;
}
interface JobDataType {
@@ -27,8 +27,8 @@ export class CustomParametersTableComponent implements OnInit {
ngOnInit(): void {
this.updatedJobParameters = this.jobParameters;
this.updatedJobParameters.push({
jobParameterName: '',
jobParameterValue: ''
parameterName: '',
parameterValue: ''
});
}
@@ -36,8 +36,8 @@ export class CustomParametersTableComponent implements OnInit {
this.updatedJobParameters = [
...this.updatedJobParameters,
{
jobParameterName: '',
jobParameterValue: ''
parameterName: '',
parameterValue: ''
}
];
}