Refactor pagination logic and add error handling in history
Introduced `updatePageSize` for better page size management and added checks to prevent rapid page changes. Enhanced error handling in `history.component` with retry logic on failure. Implemented `RemoveTrailingPeriodPipe` for cleaner UI formatting.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'removeTrailingPeriod',
|
||||
standalone: true
|
||||
})
|
||||
export class RemoveTrailingPeriodPipe implements PipeTransform {
|
||||
transform(value: string): string {
|
||||
if (!value) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return value.endsWith('.') ? value.slice(0, -1) : value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user