FE-662: changed default search params for payouts (#6)

This commit is contained in:
Alexandra Usacheva 2018-09-05 16:09:19 +03:00 committed by GitHub
parent 0df0d90f35
commit b7107e38bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -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(() => {

View File

@ -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()
});
}