|
|
@ -284,7 +284,7 @@ export class BikesComponent {
|
|
|
|
|
|
|
|
|
|
|
|
addNewObject() {
|
|
|
|
addNewObject() {
|
|
|
|
this.paginator.firstPage();
|
|
|
|
this.paginator.firstPage();
|
|
|
|
this.resetFilter();
|
|
|
|
this.setFilter({...this.filter, includesString: ""});
|
|
|
|
this.resetSorting();
|
|
|
|
this.resetSorting();
|
|
|
|
this.data.data = [
|
|
|
|
this.data.data = [
|
|
|
|
{ newObject: true, id: this.getNewId() },
|
|
|
|
{ newObject: true, id: this.getNewId() },
|
|
|
@ -382,6 +382,7 @@ export class BikesComponent {
|
|
|
|
|
|
|
|
|
|
|
|
showOnlyUnsavedElements(value: boolean) {
|
|
|
|
showOnlyUnsavedElements(value: boolean) {
|
|
|
|
this.filter.onlyUnsaved = value;
|
|
|
|
this.filter.onlyUnsaved = value;
|
|
|
|
|
|
|
|
this.filter.includesString = "";
|
|
|
|
this.applyFilter();
|
|
|
|
this.applyFilter();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -392,8 +393,8 @@ export class BikesComponent {
|
|
|
|
} as unknown) as string;
|
|
|
|
} as unknown) as string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
resetFilter() {
|
|
|
|
setFilter(filterObject) {
|
|
|
|
this.filter = this.initialFilter;
|
|
|
|
this.filter = filterObject;
|
|
|
|
this.applyFilter();
|
|
|
|
this.applyFilter();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|