Verified Commit b6d22833 authored by Alex ORLUC's avatar Alex ORLUC

FIX #10815 TIME 0:15 fix static viewChild to true

parent 159c8cd4
......@@ -16,8 +16,8 @@ declare var angularGlobals: any;
})
export class AboutUsComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
applicationVersion : string;
lang: any = LANG;
......
......@@ -33,7 +33,7 @@ export class ActionsListComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild(MatMenuTrigger, { static: false }) contextMenu: MatMenuTrigger;
@ViewChild(MatMenuTrigger, { static: true }) contextMenu: MatMenuTrigger;
@Output() triggerEvent = new EventEmitter<string>();
contextMenuPosition = { x: '0px', y: '0px' };
......
......@@ -15,7 +15,7 @@ export class CloseAndIndexActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<CloseAndIndexActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
......
......@@ -15,7 +15,7 @@ export class CloseMailActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<CloseMailActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
......
......@@ -15,7 +15,7 @@ export class ConfirmActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<ConfirmActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
......
......@@ -24,7 +24,7 @@ export class CreateAcknowledgementReceiptActionComponent implements OnInit {
sendList : []
};
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
loadingExport: boolean;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<CreateAcknowledgementReceiptActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
......
......@@ -15,7 +15,7 @@ export class DisabledBasketPersistenceActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<DisabledBasketPersistenceActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
......
......@@ -15,7 +15,7 @@ export class EnabledBasketPersistenceActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<EnabledBasketPersistenceActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
......
......@@ -43,8 +43,8 @@ export class RedirectActionComponent implements OnInit {
filteredUserRedirect: Observable<any[]>;
isDestinationChanging: boolean = false;
@ViewChild('appDiffusionsList', { static: false }) appDiffusionsList: DiffusionsListComponent;
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('appDiffusionsList', { static: true }) appDiffusionsList: DiffusionsListComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<RedirectActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
......
......@@ -15,7 +15,7 @@ export class ResMarkAsReadActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<ResMarkAsReadActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
......
......@@ -25,7 +25,7 @@ export class SendExternalNoteBookActionComponent implements OnInit {
};
errors: any;
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<SendExternalNoteBookActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
......
......@@ -25,7 +25,7 @@ export class MaarchParaphComponent implements OnInit {
editable: true
};
@ViewChild('appVisaWorkflow', { static: false }) appVisaWorkflow: VisaWorkflowComponent;
@ViewChild('appVisaWorkflow', { static: true }) appVisaWorkflow: VisaWorkflowComponent;
@Input('additionalsInfos') additionalsInfos: any;
@Input('externalSignatoryBookDatas') externalSignatoryBookDatas: any;
......
......@@ -30,10 +30,10 @@ export class SendExternalSignatoryBookActionComponent implements OnInit {
};
errors: any;
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
@ViewChild('xParaph', { static: false }) xParaph: XParaphComponent;
@ViewChild('maarchParapheur', { static: false }) maarchParapheur: MaarchParaphComponent;
@ViewChild('xParaph', { static: true }) xParaph: XParaphComponent;
@ViewChild('maarchParapheur', { static: true }) maarchParapheur: MaarchParaphComponent;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<SendExternalSignatoryBookActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
......
......@@ -36,7 +36,7 @@ export class SendShippingActionComponent implements OnInit {
mailsNotSend: any[] = []
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<SendShippingActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
......
......@@ -15,7 +15,7 @@ export class UpdateAcknowledgementSendDateActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
acknowledgementSendDate : Date = new Date();
acknowledgementSendDateEnd : Date = new Date();
......
......@@ -16,8 +16,8 @@ declare function $j(selector: any): any;
export class ActionAdministrationComponent implements OnInit {
/*HEADER*/
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang: any = LANG;
creationMode: boolean;
......
......@@ -18,8 +18,8 @@ declare function $j(selector: any): any;
export class ActionsAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang: any = LANG;
search: string = null;
......@@ -31,8 +31,8 @@ export class ActionsAdministrationComponent implements OnInit {
displayedColumns = ['id', 'label_action', 'history', 'actions'];
dataSource = new MatTableDataSource(this.actions);
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild(MatSort, { static: true }) sort: MatSort;
applyFilter(filterValue: string) {
filterValue = filterValue.trim(); // Remove whitespace
filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
......
......@@ -21,8 +21,8 @@ declare function $j(selector: any): any;
})
export class BasketAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft: MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight: MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft: MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight: MatSidenav;
dialogRef: MatDialogRef<any>;
......@@ -52,8 +52,8 @@ export class BasketAdministrationComponent implements OnInit {
dataSource: any;
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild(MatSort, { static: true }) sort: MatSort;
applyFilter(filterValue: string) {
filterValue = filterValue.trim();
filterValue = filterValue.toLowerCase();
......@@ -350,7 +350,7 @@ export class BasketAdministrationSettingsModalComponent {
constructor(public http: HttpClient, @Inject(MAT_DIALOG_DATA) public data: any, public dialogRef: MatDialogRef<BasketAdministrationSettingsModalComponent>) {
}
@ViewChild('statusInput', { static: false }) statusInput: ElementRef;
@ViewChild('statusInput', { static: true }) statusInput: ElementRef;
ngOnInit(): void {
this.http.get("../../rest/entities")
......
......@@ -17,8 +17,8 @@ declare function $j(selector: any): any;
})
export class BasketsAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang : any = LANG;
loading : boolean = false;
......@@ -29,8 +29,8 @@ export class BasketsAdministrationComponent implements OnInit {
displayedColumns = ['basket_id', 'basket_name', 'basket_desc', 'actions'];
dataSource : any;
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild(MatSort, { static: true }) sort: MatSort;
applyFilter(filterValue: string) {
filterValue = filterValue.trim(); // Remove whitespace
filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
......
......@@ -14,8 +14,8 @@ declare function $j(selector: any): any;
})
export class ContactsFillingAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft: MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight: MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft: MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight: MatSidenav;
lang: any = LANG;
......
......@@ -21,8 +21,8 @@ declare function $j(selector: any): any;
})
export class ContactsGroupAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang: any = LANG;
......@@ -58,11 +58,11 @@ export class ContactsGroupAdministrationComponent implements OnInit {
}
}
@ViewChild('paginatorContactList', { static: false }) paginator: MatPaginator;
//@ViewChild('tableContactList', { static: false }) sortContactList: MatSort;
@ViewChild('paginatorContactList', { static: true }) paginator: MatPaginator;
//@ViewChild('tableContactList', { static: true }) sortContactList: MatSort;
@ViewChild('paginatorAdded', { static: false }) paginatorAdded: MatPaginator;
@ViewChild('tableAdded', { static: false }) sortAdded: MatSort;
@ViewChild('paginatorAdded', { static: true }) paginatorAdded: MatPaginator;
@ViewChild('tableAdded', { static: true }) sortAdded: MatSort;
applyFilter(filterValue: string) {
filterValue = filterValue.trim();
filterValue = filterValue.toLowerCase();
......
......@@ -18,8 +18,8 @@ declare function $j(selector: any): any;
export class ContactsGroupsAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang: any = LANG;
search: string = null;
......@@ -31,8 +31,8 @@ export class ContactsGroupsAdministrationComponent implements OnInit {
displayedColumns = ['label', 'description', 'nbContacts', 'public', 'owner', 'actions',];
dataSource = new MatTableDataSource(this.contactsGroups);
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild(MatSort, { static: true }) sort: MatSort;
applyFilter(filterValue: string) {
filterValue = filterValue.trim(); // Remove whitespace
filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
......
......@@ -16,8 +16,8 @@ declare function $j(selector: any): any;
})
export class DiffusionModelAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang : any = LANG;
loading : boolean = false;
......
......@@ -18,8 +18,8 @@ declare function $j(selector: any): any;
})
export class DiffusionModelsAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
dialogRef : MatDialogRef<any>;
......@@ -34,8 +34,8 @@ export class DiffusionModelsAdministrationComponent implements OnInit {
dataSource = new MatTableDataSource(this.listTemplates);
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild(MatSort, { static: true }) sort: MatSort;
applyFilter(filterValue: string) {
filterValue = filterValue.trim();
filterValue = filterValue.toLowerCase();
......
......@@ -18,8 +18,8 @@ declare function $j(selector: any): any;
export class DocserverAdministrationComponent implements OnInit {
/*HEADER*/
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang : any = LANG;
loading : boolean = false;
......@@ -28,8 +28,8 @@ export class DocserverAdministrationComponent implements OnInit {
docserver : any = {coll_id:"letterbox_coll", docserver_type_id:"DOC", limitSizeFormatted :"50"};
docserversTypes : any = [];
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild(MatSort, { static: true }) sort: MatSort;
constructor(
public http: HttpClient,
......
......@@ -17,8 +17,8 @@ declare function $j(selector: any): any;
export class DocserversAdministrationComponent implements OnInit {
/*HEADER*/
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang : any = LANG;
loading : boolean = false;
......@@ -28,8 +28,8 @@ export class DocserversAdministrationComponent implements OnInit {
docserversClone : any = [];
docserversTypes : any = {};
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild(MatSort, { static: true }) sort: MatSort;
constructor(
public http: HttpClient,
......
......@@ -19,8 +19,8 @@ declare function $j(selector: any): any;
export class DoctypesAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
dialogRef: MatDialogRef<any>;
config: any = {};
......@@ -44,8 +44,8 @@ export class DoctypesAdministrationComponent implements OnInit {
displayedColumns = ['label','use', 'mandatory', 'column'];
dataSource = new MatTableDataSource(this.currentType.indexes);
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild(MatSort, { static: true }) sort: MatSort;
constructor(
public http: HttpClient,
......
......@@ -22,8 +22,8 @@ declare function $j(selector: any): any;
export class EntitiesAdministrationComponent implements OnInit {
/*HEADER*/
titleHeader : string;
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
dialogRef : MatDialogRef<any>;
......@@ -47,10 +47,10 @@ export class EntitiesAdministrationComponent implements OnInit {
displayedColumnsTemplates = ['template_label', 'template_target'];
@ViewChild('paginatorUsers', { static: false }) paginatorUsers: MatPaginator;
@ViewChild('paginatorTemplates', { static: false }) paginatorTemplates: MatPaginator;
@ViewChild('tableUsers', { static: false }) sortUsers: MatSort;
@ViewChild('tableTemplates', { static: false }) sortTemplates: MatSort;
@ViewChild('paginatorUsers', { static: true }) paginatorUsers: MatPaginator;
@ViewChild('paginatorTemplates', { static: true }) paginatorTemplates: MatPaginator;
@ViewChild('tableUsers', { static: true }) sortUsers: MatSort;
@ViewChild('tableTemplates', { static: true }) sortTemplates: MatSort;
applyFilterUsers(filterValue: string) {
filterValue = filterValue.trim();
filterValue = filterValue.toLowerCase();
......
......@@ -19,8 +19,8 @@ declare function $j(selector: any) : any;
})
export class GroupAdministrationComponent implements OnInit {
/*HEADER*/
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang : any = LANG;
loading : boolean = false;
......@@ -36,10 +36,10 @@ export class GroupAdministrationComponent implements OnInit {
basketsDataSource : any;
@ViewChild('paginatorBaskets', { static: false }) paginatorBaskets: MatPaginator;
@ViewChild('sortBaskets', { static: false }) sortBaskets: MatSort;
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild('sortUsers', { static: false }) sortUsers: MatSort;
@ViewChild('paginatorBaskets', { static: true }) paginatorBaskets: MatPaginator;
@ViewChild('sortBaskets', { static: true }) sortBaskets: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild('sortUsers', { static: true }) sortUsers: MatSort;
applyFilter(filterValue: string) {
filterValue = filterValue.trim();
......
......@@ -18,8 +18,8 @@ declare function $j(selector: any): any;
})
export class GroupsAdministrationComponent implements OnInit {
/*HEADER*/
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
dialogRef : MatDialogRef<any>;
......@@ -35,8 +35,8 @@ export class GroupsAdministrationComponent implements OnInit {
dataSource = new MatTableDataSource(this.groups);
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild(MatSort, { static: true }) sort: MatSort;
applyFilter(filterValue: string) {
filterValue = filterValue.trim();
filterValue = filterValue.toLowerCase();
......
......@@ -16,8 +16,8 @@ declare function $j(selector: any): any;
})
export class HistoryAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang : any = LANG;
loading : boolean = false;
......@@ -41,10 +41,10 @@ export class HistoryAdministrationComponent implements OnInit {
accessHistory : boolean = true;
@ViewChild('paginator', { static: false }) paginator: MatPaginator;
@ViewChild('batchPaginator', { static: false }) batchPaginator: MatPaginator;
@ViewChild('sort', { static: false }) sort: MatSort;
@ViewChild('batchSort', { static: false }) batchSort: MatSort;
@ViewChild('paginator', { static: true }) paginator: MatPaginator;
@ViewChild('batchPaginator', { static: true }) batchPaginator: MatPaginator;
@ViewChild('sort', { static: true }) sort: MatSort;
@ViewChild('batchSort', { static: true }) batchSort: MatSort;
applyFilter(filterValue: string, historyType : string) {
filterValue = filterValue.trim();
filterValue = filterValue.toLowerCase();
......
......@@ -25,8 +25,8 @@ export class AdministrationComponent implements OnInit {
classementServices : any[] = [];
supervisionServices : any[] = [];
@ViewChild('snav', { static: false }) public sidenavLeft: MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight: MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft: MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight: MatSidenav;
constructor(
public http: HttpClient,
......
......@@ -15,8 +15,8 @@ declare var $j: any;
})
export class NotificationAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
creationMode: boolean;
notification: any = {
......
......@@ -17,8 +17,8 @@ declare function $j(selector: any): any;
})
export class NotificationsAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
notifications: any[] = [];
loading: boolean = false;
......@@ -47,8 +47,8 @@ export class NotificationsAdministrationComponent implements OnInit {
displayedColumns = ['notification_id', 'description', 'is_enabled', 'notifications'];
dataSource = new MatTableDataSource(this.notifications);
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild(MatSort, { static: true }) sort: MatSort;
applyFilter(filterValue: string) {
filterValue = filterValue.trim(); // Remove whitespace
filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
......
......@@ -15,8 +15,8 @@ declare function $j(selector: any): any;
})
export class ParameterAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang : any = LANG;
loading : boolean = false;
......
......@@ -17,8 +17,8 @@ declare function $j(selector: any): any;
})
export class ParametersAdministrationComponent implements OnInit {
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang: any = LANG;
......@@ -28,8 +28,8 @@ export class ParametersAdministrationComponent implements OnInit {
displayedColumns = ['id', 'description', 'value', 'actions'];
dataSource: any;
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@ViewChild(MatSort, { static: true }) sort: MatSort;
constructor(
......
......@@ -17,8 +17,8 @@ declare function $j(selector: any): any;
})
export class PrioritiesAdministrationComponent implements OnInit {
/*HEADER*/
@ViewChild('snav', { static: false }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: false }) public sidenavRight : MatSidenav;
@ViewChild('snav', { static: true }) public sidenavLeft : MatSidenav;
@ViewChild('snav2', { static: true }) public sidenavRight : MatSidenav;
lang : any = LANG;
loading : boolean = false;
......@@ -29,8 +29,8 @@ export class PrioritiesAdministrationComponent implements OnInit {
displayedColumns = ['label', 'delays', 'working_days', 'default_priority', 'actions'];
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
@ViewChild(MatSort, { static: false }) sort: MatSort;