Fix to pay client charge with 404
This commit is contained in:
committed by
Arnold Gálovics
parent
46ddf33a0c
commit
3c6f95ec9d
+6
-6
@@ -5,7 +5,7 @@
|
|||||||
<form [formGroup]="transactionForm" (ngSubmit)="submit()">
|
<form [formGroup]="transactionForm" (ngSubmit)="submit()">
|
||||||
|
|
||||||
<div fxLayout="column">
|
<div fxLayout="column">
|
||||||
|
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-label> Amount </mat-label>
|
<mat-label> Amount </mat-label>
|
||||||
<input matInput required autofocus formControlName="amount">
|
<input matInput required autofocus formControlName="amount">
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
Amount <strong>is required</strong>
|
Amount <strong>is required</strong>
|
||||||
</mat-error>
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field (click)="transactionDatePicker.open()">
|
<mat-form-field (click)="transactionDatePicker.open()">
|
||||||
<mat-label> Transaction date </mat-label>
|
<mat-label> Transaction date </mat-label>
|
||||||
<input matInput [min]="minDate" [matDatepicker]="transactionDatePicker" required formControlName="transactionDate">
|
<input matInput [min]="minDate" [matDatepicker]="transactionDatePicker" required formControlName="transactionDate">
|
||||||
@@ -23,14 +23,14 @@
|
|||||||
Transaction date <strong>is required</strong>
|
Transaction date <strong>is required</strong>
|
||||||
</mat-error>
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="5px">
|
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="5px">
|
||||||
<button type="button" mat-raised-button [routerLink]="['../','general']">Cancel</button>
|
<button type="button" mat-raised-button [routerLink]="['../../..','general']">Cancel</button>
|
||||||
<button mat-raised-button color="primary" [disabled]="!transactionForm.valid">Submit</button>
|
<button mat-raised-button color="primary" [disabled]="!transactionForm.valid">Submit</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|||||||
+1
-1
@@ -77,7 +77,7 @@ export class ClientPayChargesComponent implements OnInit {
|
|||||||
locale
|
locale
|
||||||
};
|
};
|
||||||
this.clientsService.payClientCharge(this.transactionData.clientId, this.transactionData.id, data).subscribe(() => {
|
this.clientsService.payClientCharge(this.transactionData.clientId, this.transactionData.id, data).subscribe(() => {
|
||||||
this.router.navigate(['../', 'general']);
|
this.router.navigate(['../../..','general'], { relativeTo: this.route });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user