mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4371] Versioning - revert upload version on delete (#4572)
* revert upload version on delete * methods return type
This commit is contained in:
committed by
Denys Vuika
parent
1f6e868464
commit
8975d4b6a6
@@ -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']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user