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