feat: Nach der Erstellung eines Benutzers (über das Benutzerformular oder Active Directory) wird die Benutzertabelle automatisch durch den RefreshService aktualisiert.

This commit is contained in:
Developer 02
2024-08-01 10:15:25 +02:00
parent 35cca9aef0
commit 672f51a99c
2 changed files with 8 additions and 2 deletions

View File

@@ -57,7 +57,11 @@ export class UserFormComponent {
prename: this.name.value!,
username: this.username.value!,
name: this.surname.value!,
}).subscribe()
}).subscribe({
next: () => {
this.rService.executeAll();
}
})
}
}
}

View File

@@ -8,6 +8,7 @@ import { DirGroupTableComponent } from '../tables/dir-group-table/dir-group-tabl
import { DirUserTableComponent } from '../tables/dir-user-table/dir-user-table.component';
import { UserService } from '../../services/user.service';
import { User } from '../../models/user-management.api.models'
import { RefreshService } from '../../services/refresh.service';
@Component({
standalone: true,
@@ -20,7 +21,7 @@ export class UserGroupDirImportComponent implements OnInit, AfterViewInit {
initWithoutData = () => { }
constructor(private gService: GroupService, private uService: UserService) {
constructor(private gService: GroupService, private uService: UserService, private rService: RefreshService) {
}
ngOnInit(): void {
@@ -81,6 +82,7 @@ export class UserGroupDirImportComponent implements OnInit, AfterViewInit {
})
).subscribe({
next: (results) => {
this.rService.executeAll();
numAdded += results.filter(result => result !== null).length;
},
error: (err) => {