refactor: cellEdit-Methode vereinfacht, indem die rowEdit-Funktion entfernt wurde.
This commit is contained in:
parent
cef2690aa8
commit
39da8bd664
@ -23,9 +23,6 @@ export class UserComponent extends BasePageComponent implements AfterViewInit {
|
||||
|
||||
cellEditing: GuiCellEdit = {
|
||||
enabled: true,
|
||||
rowEdit: (value: any, item: any, index: number) => {
|
||||
return true;
|
||||
},
|
||||
cellEdit: (value: any, item: User, index: number) => {
|
||||
this.updateService.setAsync("user_" + item.id!.toString(), async () => {
|
||||
await firstValueFrom(this.userTable.service.update(item))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user