mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 16:27:42 +00:00
fix(console): reset events filter to initial values (#7037)
This commit is contained in:
parent
9da4abd459
commit
3842319d07
@ -75,6 +75,8 @@ export class FilterEventsComponent implements OnInit {
|
|||||||
eventTypesList: new FormControl<EventType.AsObject[]>([]),
|
eventTypesList: new FormControl<EventType.AsObject[]>([]),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
private initialValues = this.form.getRawValue();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private adminService: AdminService,
|
private adminService: AdminService,
|
||||||
private toast: ToastService,
|
private toast: ToastService,
|
||||||
@ -172,6 +174,7 @@ export class FilterEventsComponent implements OnInit {
|
|||||||
|
|
||||||
public reset(): void {
|
public reset(): void {
|
||||||
this.form.reset();
|
this.form.reset();
|
||||||
|
this.form.setValue(this.initialValues);
|
||||||
this.emitChange();
|
this.emitChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user