[no-issue] remove viewChildren use (#3116)

* remove viewChildren component use in lib and demoshell

* Update trashcan.component.ts

* Update trashcan.component.ts
This commit is contained in:
Eugenio Romano
2018-03-23 10:06:59 +00:00
committed by GitHub
parent 12f29d5524
commit 812c7be6f6
25 changed files with 37 additions and 27 deletions

View File

@@ -10,6 +10,7 @@
</adf-toolbar-title>
</adf-toolbar>
<adf-document-list
#customSourcesDocumentList
[currentFolderId]="selectedSource"
locationFormat="/files"
selectionMode="multiple">

View File

@@ -27,7 +27,7 @@ export class CustomSourcesComponent {
@Input()
selectedSource = '-recent-';
@ViewChild(DocumentListComponent)
@ViewChild('customSourcesDocumentList')
documentList: DocumentListComponent;
sources = [

View File

@@ -141,7 +141,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
@ViewChild('documentList')
documentList: DocumentListComponent;
@ViewChild(PaginationComponent)
@ViewChild('standardPagination')
standardPagination: PaginationComponent;
permissionsStyle: PermissionStyleModel[] = [];

View File

@@ -1,7 +1,7 @@
<adf-form-list [forms]="formList" (row-dblclick)="onRowDblClick($event)">
</adf-form-list>
<div class="form-container" *ngIf="!isEmptyForm()">
<adf-form [form]="form" [data]="restoredData">
<adf-form #adfForm [form]="form" [data]="restoredData">
</adf-form>
</div>
<button mat-button (click)="store()" color="primary">{{'FORM-LIST.STORE' | translate }}</button>

View File

@@ -25,7 +25,7 @@ import { FormComponent, FormModel, FormService, LogService } from '@alfresco/adf
})
export class FormListComponent {
@ViewChild(FormComponent)
@ViewChild('adfForm')
activitiForm: FormComponent;
formList: any [] = [];

View File

@@ -41,7 +41,7 @@ export function processUploadServiceFactory(api: AlfrescoApiService, config: App
export class ProcessAttachmentsComponent implements OnInit, OnChanges {
@ViewChild(ProcessAttachmentListComponent)
@ViewChild('processAttachList')
processAttachList: ProcessAttachmentListComponent;
@Input()

View File

@@ -38,7 +38,7 @@ export function taskUploadServiceFactory(api: AlfrescoApiService, config: AppCon
export class TaskAttachmentsComponent implements OnInit, OnChanges {
@ViewChild(TaskAttachmentListComponent)
@ViewChild('taskAttachList')
taskAttachList: TaskAttachmentListComponent;
@Input()

View File

@@ -32,11 +32,11 @@ import { DocumentListComponent } from '@alfresco/adf-content-services';
})
export class TrashcanComponent {
@ViewChild(DocumentListComponent)
documentList;
@ViewChild('documentList')
documentList: DocumentListComponent;
refresh() {
this.documentList.loadTrashcan();
this.documentList.reload();
this.documentList.resetSelection();
}