Fix pageChange emission to use history length

Modified the `ngOnChanges` method to emit the length of the history instead of the current page. This ensures accurate data is provided to parent components during changes.
This commit is contained in:
Teriuihi 2025-04-12 23:01:35 +02:00
parent 21b87fbf68
commit 48fd133b6d

View File

@ -36,7 +36,7 @@ export class HistoryComponent implements OnInit, OnChanges {
ngOnChanges(): void {
this.reloadHistory();
this.pageChange.emit(this.page);
this.pageChange.emit(this.history.length);
}
ngOnInit(): void {