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!,
|
prename: this.name.value!,
|
||||||
username: this.username.value!,
|
username: this.username.value!,
|
||||||
name: this.surname.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 { DirUserTableComponent } from '../tables/dir-user-table/dir-user-table.component';
|
||||||
import { UserService } from '../../services/user.service';
|
import { UserService } from '../../services/user.service';
|
||||||
import { User } from '../../models/user-management.api.models'
|
import { User } from '../../models/user-management.api.models'
|
||||||
|
import { RefreshService } from '../../services/refresh.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
@@ -20,7 +21,7 @@ export class UserGroupDirImportComponent implements OnInit, AfterViewInit {
|
|||||||
|
|
||||||
initWithoutData = () => { }
|
initWithoutData = () => { }
|
||||||
|
|
||||||
constructor(private gService: GroupService, private uService: UserService) {
|
constructor(private gService: GroupService, private uService: UserService, private rService: RefreshService) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
@@ -81,6 +82,7 @@ export class UserGroupDirImportComponent implements OnInit, AfterViewInit {
|
|||||||
})
|
})
|
||||||
).subscribe({
|
).subscribe({
|
||||||
next: (results) => {
|
next: (results) => {
|
||||||
|
this.rService.executeAll();
|
||||||
numAdded += results.filter(result => result !== null).length;
|
numAdded += results.filter(result => result !== null).length;
|
||||||
},
|
},
|
||||||
error: (err) => {
|
error: (err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user