[ADF-3351] angular 7 (#3956)

* upgrade Angular CLI

* upgrade material and fix breaking changes

* upgrade lib dependencies

* upgrade i18n

* update test

* disable flaky tests

* try fix notification test

* update package-lock

* code and dependency fixes

* card view e2e fixes

* udpate e2e tests

* fix e2e utils

* updated e2e typings

* test fixes

* notification fixes

* update tests
This commit is contained in:
Denys Vuika
2018-12-07 09:16:21 +00:00
committed by Eugenio Romano
parent 811a3f1f7d
commit 220930d27b
28 changed files with 5473 additions and 4626 deletions

View File

@@ -37,7 +37,7 @@ export class UploadVersionButtonComponent extends UploadButtonComponent implemen
node: MinimalNodeEntryEntity;
protected createFileModel(file: File): FileModel {
const fileModel = super.createFileModel(file, this.rootFolderId, (file.webkitRelativePath || '').replace(/\/[^\/]*$/, ''), this.node.id);
const fileModel = super.createFileModel(file, this.rootFolderId, ((<any> file).webkitRelativePath || '').replace(/\/[^\/]*$/, ''), this.node.id);
if (!this.isFileAcceptable(fileModel)) {
const message = this.translationService.instant('FILE_UPLOAD.VERSION.MESSAGES.INCOMPATIBLE_VERSION');