mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-05 22:52:46 +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[]>([]),
|
||||
});
|
||||
|
||||
private initialValues = this.form.getRawValue();
|
||||
|
||||
constructor(
|
||||
private adminService: AdminService,
|
||||
private toast: ToastService,
|
||||
@ -172,6 +174,7 @@ export class FilterEventsComponent implements OnInit {
|
||||
|
||||
public reset(): void {
|
||||
this.form.reset();
|
||||
this.form.setValue(this.initialValues);
|
||||
this.emitChange();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user