remove MDL dependencies and old toolbar (#2207)

This commit is contained in:
Denys Vuika
2017-08-14 11:34:50 +01:00
committed by Mario Romano
parent fc46830f7d
commit bb79190209
17 changed files with 66 additions and 634 deletions

View File

@@ -74,9 +74,6 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
@Input()
contextMenuActions: boolean = false;
@Input()
creationMenuActions: boolean = true;
@Input()
pageSize: number = DocumentListComponent.DEFAULT_PAGE_SIZE;
@@ -130,18 +127,12 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
@Output()
preview: EventEmitter<NodeEntityEvent> = new EventEmitter<NodeEntityEvent>();
@Output()
success: EventEmitter<any> = new EventEmitter();
@Output()
ready: EventEmitter<any> = new EventEmitter();
@Output()
error: EventEmitter<any> = new EventEmitter();
@Output()
permissionError: EventEmitter<any> = new EventEmitter();
@ViewChild(DataTableComponent)
dataTable: DataTableComponent;
@@ -559,15 +550,6 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
}
}
onActionMenuError(event) {
this.error.emit(event);
}
onActionMenuSuccess(event) {
this.reload();
this.success.emit(event);
}
onChangePageSize(event: Pagination): void {
this.pageSize = event.maxItems;
this.reload();
@@ -583,10 +565,6 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
this.reload();
}
onPermissionError(event) {
this.permissionError.emit(event);
}
private enforceSingleClickNavigationForMobile(): void {
if (this.isMobile()) {
this.navigationMode = DocumentListComponent.SINGLE_CLICK_NAVIGATION;