AfterViewInit-Implementierungen entfernen
This commit is contained in:
parent
601c051ecc
commit
5a6c2b5256
@ -13,7 +13,7 @@ import { DirGroup } from '../../models/user-management.api.models';
|
||||
templateUrl: './group-dir-import.component.html',
|
||||
styleUrl: './group-dir-import.component.css'
|
||||
})
|
||||
export class GroupDirImportComponent implements OnInit, AfterViewInit {
|
||||
export class GroupDirImportComponent implements OnInit {
|
||||
|
||||
initWithoutData = () => { }
|
||||
|
||||
@ -26,9 +26,6 @@ export class GroupDirImportComponent implements OnInit, AfterViewInit {
|
||||
|
||||
@ViewChild('dirGroups') dirGroups!: DirGroupTableComponent;
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
}
|
||||
|
||||
dirGroupsRowSelection: GuiRowSelection = {
|
||||
enabled: true,
|
||||
type: GuiRowSelectionType.CHECKBOX,
|
||||
|
||||
@ -9,7 +9,7 @@ import { ColorModeService, Theme } from '../../../services/color-mode.service';
|
||||
templateUrl: './base-table.component.html',
|
||||
styleUrl: './base-table.component.css'
|
||||
})
|
||||
export class BaseTableComponent<TModel, TApiService extends ApiService<TModel>> implements OnInit, AfterViewInit, OnDestroy {
|
||||
export class BaseTableComponent<TModel, TApiService extends ApiService<TModel>> implements OnInit, OnDestroy {
|
||||
|
||||
service: TApiService;
|
||||
|
||||
@ -23,7 +23,7 @@ export class BaseTableComponent<TModel, TApiService extends ApiService<TModel>>
|
||||
enabled: true,
|
||||
multiSorting: true
|
||||
};
|
||||
loading: boolean = true;
|
||||
loading: boolean = false;
|
||||
autoResizeWidth: boolean = true;
|
||||
rowDetail: GuiRowDetail = {
|
||||
enabled: true,
|
||||
@ -145,9 +145,6 @@ export class BaseTableComponent<TModel, TApiService extends ApiService<TModel>>
|
||||
this.themeSubscription.unsubscribe();
|
||||
}
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
}
|
||||
|
||||
fetchData(): void {
|
||||
this.service.getAll().subscribe({
|
||||
next: (response) => {
|
||||
|
||||
@ -44,8 +44,8 @@ export class UserAssignmentComponent implements OnInit, AfterViewInit {
|
||||
ngOnInit(): void {}
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
this.unassignedUsers.loading = false;
|
||||
this.assignedUsers.loading = false;
|
||||
//this.unassignedUsers.loading = false;
|
||||
//this.assignedUsers.loading = false;
|
||||
}
|
||||
|
||||
createAssignDragMethod(target: string): (event: DragEvent) => void {
|
||||
|
||||
@ -28,7 +28,7 @@ export class UserGroupDirImportComponent implements OnInit, AfterViewInit {
|
||||
@ViewChild('dirUsers') dirUsers!: DirUserTableComponent;
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
this.dirUsers.loading = false;
|
||||
//this.dirUsers.loading = false;
|
||||
}
|
||||
|
||||
dirGroupsRowSelection: GuiRowSelection = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user