refactor(user-representation): Umbenennung von 'slUserRepId' in 'slRepId'
This commit is contained in:
@@ -26,7 +26,7 @@ export class UserRepresentationComponent extends BasePageComponent implements Af
|
||||
slGroupId?: number;
|
||||
slRepUserId?: number;
|
||||
slRepGroupId?: number;
|
||||
slUserRepId?: number;
|
||||
slRepId?: number;
|
||||
|
||||
initWithoutData = () => { }
|
||||
|
||||
@@ -181,10 +181,10 @@ export class UserRepresentationComponent extends BasePageComponent implements Af
|
||||
}
|
||||
|
||||
repOnSelectedRows = (rows: GuiSelectedRow[]) => {
|
||||
if (rows.length == 0 && this.slUserRepId) {
|
||||
this.userRepService.delete(this.slUserRepId).subscribe({
|
||||
if (rows.length == 0 && this.slRepId) {
|
||||
this.userRepService.delete(this.slRepId).subscribe({
|
||||
next: (res) => {
|
||||
this.slUserRepId = undefined;
|
||||
this.slRepId = undefined;
|
||||
this.userReps.safelyUnselectAll();
|
||||
if (this.slUserId != undefined)
|
||||
this.userReps.fetchData(this.slUserId)
|
||||
@@ -192,7 +192,7 @@ export class UserRepresentationComponent extends BasePageComponent implements Af
|
||||
this.userReps.fetchData(undefined, this.slGroupId)
|
||||
},
|
||||
error: (err) => {
|
||||
this.slUserRepId = undefined;
|
||||
this.slRepId = undefined;
|
||||
this.repUsers.safelyUnselectAll()
|
||||
Swal.fire({
|
||||
icon: "error",
|
||||
@@ -203,7 +203,7 @@ export class UserRepresentationComponent extends BasePageComponent implements Af
|
||||
})
|
||||
}
|
||||
else if (rows.length > 0) {
|
||||
this.slUserRepId = rows[0].source?.id;
|
||||
this.slRepId = rows[0].source?.id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user