mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
ACS-7461 Remove ADF_DOCUMENT_PARENT_COMPONENT token (#11372)
This commit is contained in:
@@ -77,7 +77,6 @@ import { PermissionStyleModel } from '../models/permissions-style.model';
|
||||
import { presetsDefaultModel } from '../models/preset.model';
|
||||
import { DocumentListService } from '../services/document-list.service';
|
||||
import { LockService } from '../services/lock.service';
|
||||
import { ADF_DOCUMENT_PARENT_COMPONENT } from './document-list.token';
|
||||
import { FileAutoDownloadComponent } from './file-auto-download/file-auto-download.component';
|
||||
import { NodeEntityEvent, NodeEntryEvent } from './node.event';
|
||||
import { CommonModule } from '@angular/common';
|
||||
@@ -108,13 +107,7 @@ const BYTES_TO_MB_CONVERSION_VALUE = 1048576;
|
||||
],
|
||||
templateUrl: './document-list.component.html',
|
||||
styleUrls: ['./document-list.component.scss'],
|
||||
providers: [
|
||||
{
|
||||
provide: ADF_DOCUMENT_PARENT_COMPONENT,
|
||||
useExisting: DocumentListComponent
|
||||
},
|
||||
DataTableService
|
||||
],
|
||||
providers: [DataTableService],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
host: { class: 'adf-document-list' }
|
||||
})
|
||||
@@ -1048,6 +1041,16 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
|
||||
this.filterSelection.emit(activeFilters);
|
||||
}
|
||||
|
||||
onFilterSearchResultsReady(nodePaging: NodePaging) {
|
||||
this.node = nodePaging;
|
||||
this.reload();
|
||||
}
|
||||
|
||||
onFiltersCleared() {
|
||||
this.node = null;
|
||||
this.reload();
|
||||
}
|
||||
|
||||
resetNewFolderPagination() {
|
||||
this._pagination.skipCount = 0;
|
||||
this._pagination.maxItems = this.maxItems;
|
||||
|
||||
Reference in New Issue
Block a user