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:
@@ -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();
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user