Commit 7fdf81f5 authored by Maxim Bogdanov's avatar Maxim Bogdanov 🙉

Added ability to choose Fee Type.

parent 0385ae83
......@@ -205,7 +205,7 @@ export class ApiService {
params.set('allowUnconfirmed', "true");
return this.http
.get(this.currentApiUrl + '/wallet/estimate-txfee', new RequestOptions({ headers: this.headers, search: params }))
.get(this.currentApiUrl + '/destreamwallet/estimate-txfee', new RequestOptions({ headers: this.headers, search: params }))
.map((response: Response) => response);
}
......@@ -215,7 +215,7 @@ export class ApiService {
buildTransaction(data: TransactionBuilding): Observable<any> {
return this.http
.post(this.currentApiUrl + '/wallet/build-transaction', JSON.stringify(data), { headers: this.headers })
.post(this.currentApiUrl + '/destreamwallet/build-transaction', JSON.stringify(data), { headers: this.headers })
.map((response: Response) => response);
}
......
......@@ -21,19 +21,19 @@
<div *ngIf="formErrors.address" class="form-control-feedback">{{ formErrors.address }}</div>
</div>
<div class="form-group clearfix">
<!--<label>Transaction Fee</label>-->
<label>Fee Type</label>
<!-- fee buttons -->
<!--<div class="radioButtons" ngbRadioGroup name="feeButtons" formControlName="fee">
<label ngbButtonLabel class="btn btn-outline-danger">
<input ngbButton type="radio" value="low">Low/Slow
</label>
<div class="radioButtons" ngbRadioGroup name="feeButtons" formControlName="fee">
<label ngbButtonLabel class="btn btn-outline-warning mx-2">
<input ngbButton type="radio" value="medium">Medium
<input ngbButton type="radio" value="Included">Included
</label>
<label ngbButtonLabel class="btn btn-outline-success">
<input ngbButton type="radio" value="high">High/Fast
<label ngbButtonLabel class="btn btn-outline-danger">
<input ngbButton type="radio" value="Extra">Extra
</label>
</div>-->
<!--<label ngbButtonLabel class="btn btn-outline-success">
<input ngbButton type="radio" value="high">High/Fast
</label>-->
</div>
<!-- /fee buttons -->
<div class="form-group clearfix">
<div *ngIf="estimatedFee">
......
......@@ -44,7 +44,7 @@ export class SendComponent implements OnInit {
"address": ["", Validators.compose([Validators.required, Validators.minLength(26)])],
// "amount": ["", Validators.compose([Validators.required, Validators.pattern(/^[0-9]+(\.[0-9]{0,8})?$/)])],
"amount": ["", Validators.compose([Validators.required, Validators.pattern(/^([0-9]+)?(\.[0-9]{0,8})?$/)])],
"fee": ["medium", Validators.required],
"fee": ["Included", Validators.required],
"password": ["", Validators.required]
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment