[ADF-4371] Versioning - revert upload version on delete (#4572)

* revert upload version on delete

* methods return type
This commit is contained in:
Cilibiu Bogdan
2019-04-10 18:30:50 +03:00
committed by Denys Vuika
parent 1f6e868464
commit 8975d4b6a6
8 changed files with 300 additions and 65 deletions

View File

@@ -48,4 +48,26 @@ export class FileUploadingListRowComponent {
this.file.status === FileUploadStatus.Aborted ||
this.file.status === FileUploadStatus.Deleted;
}
get versionNumber(): string {
return this.file.data.entry.properties['cm:versionLabel'];
}
get mimeType(): string {
if (this.file && this.file.file && this.file.file.type) {
return this.file.file.type;
}
return 'default';
}
isUploadVersion(): boolean {
return (
!!this.file.data &&
this.file.options &&
this.file.options.newVersion &&
this.file.data.entry.properties &&
this.file.data.entry.properties['cm:versionLabel']
);
}
}