feat: fetchByUser und fetchByGroup Methoden in UserRepTableComponent zur gezielten Datenabfrage hinzugefügt
This commit is contained in:
parent
296f29cf82
commit
616862391e
@ -31,4 +31,12 @@ export class UserRepTableComponent extends BaseTableComponent<UserRep, UserRepSe
|
||||
error: (error: any) => { }
|
||||
});
|
||||
}
|
||||
|
||||
public fetchByUser(id: number): void {
|
||||
this.fetchData(id, undefined);
|
||||
}
|
||||
|
||||
public fetchByGroup(id: number): void {
|
||||
this.fetchData(undefined, id);
|
||||
}
|
||||
}
|
||||
@ -63,7 +63,7 @@ export class UserRepresentationComponent extends BasePageComponent implements Af
|
||||
if (rows.length > 0) {
|
||||
this.useRepLabel = `Vertretungen von ${rows[0].source?.username}`
|
||||
this.users.safelyUnselectAll();
|
||||
this.userReps.fetchData(rows[0].source?.id)
|
||||
this.userReps.fetchByUser(rows[0].source?.id);
|
||||
this.slGroupId = undefined;
|
||||
this.slUserId = rows[0].source?.id
|
||||
}
|
||||
@ -73,7 +73,7 @@ export class UserRepresentationComponent extends BasePageComponent implements Af
|
||||
if (rows.length > 0) {
|
||||
this.useRepLabel = `Vertretungen von ${rows[0].source?.name}`
|
||||
this.groups.safelyUnselectAll();
|
||||
this.userReps.fetchData(undefined, rows[0].source?.id)
|
||||
this.userReps.fetchByGroup(rows[0].source?.id);
|
||||
this.slUserId = undefined;
|
||||
this.slGroupId = rows[0].source?.id
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user