refactor(user-representation): Umbenennung von 'slUserRepId' in 'slRepId'
This commit is contained in:
parent
881d2ccac8
commit
8cf2183cd6
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,7 +31,6 @@ namespace DigitalData.UserManager.API.Controllers
|
||||
_logger.LogNotice(n);
|
||||
return NotFound();
|
||||
});
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
using AutoMapper;
|
||||
using DigitalData.Core.Application;
|
||||
using DigitalData.Core.DTO;
|
||||
using DigitalData.UserManager.Application.Contracts;
|
||||
using DigitalData.UserManager.Application.DTOs.UserRep;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user