mirror of
https://github.com/valitydev/control-center.git
synced 2024-11-06 02:25:17 +00:00
FE-662: changed default search params for payouts (#6)
This commit is contained in:
parent
0df0d90f35
commit
b7107e38bc
@ -30,8 +30,7 @@ export class PayoutsComponent implements OnInit {
|
||||
this.payouts$ = this.payoutsService.payouts$;
|
||||
this.isLoading = true;
|
||||
this.payoutsService.get(this.searchService.formValueToSearchParams({
|
||||
status: PayoutStatus.unpaid,
|
||||
fromTime: moment().subtract(1, 'months'),
|
||||
fromTime: moment().subtract(1, 'weeks'),
|
||||
toTime: moment().add(1, 'days')
|
||||
}
|
||||
)).subscribe(() => {
|
||||
|
@ -44,8 +44,8 @@ export class SearchFormService {
|
||||
private prepareForm(): FormGroup {
|
||||
return this.fb.group({
|
||||
payoutIds: '',
|
||||
status: PayoutStatus.unpaid,
|
||||
fromTime: moment().subtract(1, 'months').utc().toDate(),
|
||||
status: '',
|
||||
fromTime: moment().subtract(1, 'weeks').utc().toDate(),
|
||||
toTime: moment().add(1, 'days').utc().toDate()
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user