|
|
@ -128,6 +128,7 @@ export class BikesComponent {
|
|
|
|
|
|
|
|
|
|
|
|
relockingInterval = null;
|
|
|
|
relockingInterval = null;
|
|
|
|
relockingDuration = 1000 * 60 * 1;
|
|
|
|
relockingDuration = 1000 * 60 * 1;
|
|
|
|
|
|
|
|
filterValue: string = "";
|
|
|
|
isLoaded = false;
|
|
|
|
isLoaded = false;
|
|
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
constructor(
|
|
|
@ -261,6 +262,9 @@ export class BikesComponent {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
addEmptyRow() {
|
|
|
|
addEmptyRow() {
|
|
|
|
|
|
|
|
this.paginator.firstPage();
|
|
|
|
|
|
|
|
this.resetFilter();
|
|
|
|
|
|
|
|
this.resetSorting();
|
|
|
|
this.data.data = [{ newObject: true }, ...this.data.data];
|
|
|
|
this.data.data = [{ newObject: true }, ...this.data.data];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -314,8 +318,16 @@ export class BikesComponent {
|
|
|
|
: this.data.data.forEach((row) => this.selection.select(row));
|
|
|
|
: this.data.data.forEach((row) => this.selection.select(row));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
applyFilter(event: Event) {
|
|
|
|
applyFilter() {
|
|
|
|
const filterValue = (event.target as HTMLInputElement).value;
|
|
|
|
this.data.filter = this.filterValue.trim().toLowerCase();
|
|
|
|
this.data.filter = filterValue.trim().toLowerCase();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resetFilter() {
|
|
|
|
|
|
|
|
this.filterValue = "";
|
|
|
|
|
|
|
|
this.applyFilter();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resetSorting() {
|
|
|
|
|
|
|
|
this.sort.sort({id: null, start: 'asc', disableClear: false });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|