Unprocessed, error and deleted files are readonly
This commit is contained in:
parent
633b12468a
commit
3999f1ff73
@ -135,6 +135,8 @@ export class PermissionsService {
|
||||
canPerformAnnotationActions(file: File, dossier: Dossier): boolean {
|
||||
return (
|
||||
dossier.isActive &&
|
||||
!file.isUnprocessed &&
|
||||
!file.deleted &&
|
||||
!file.isError &&
|
||||
!file.isFullProcessing &&
|
||||
!file.excluded &&
|
||||
|
||||
@ -131,6 +131,10 @@ export class File extends Entity<IFile> implements IFile, IRouterPath {
|
||||
file.fileAttributes && file.fileAttributes.attributeIdToValue ? file.fileAttributes : { attributeIdToValue: {} };
|
||||
}
|
||||
|
||||
get deleted(): boolean {
|
||||
return !!this.softDeletedTime;
|
||||
}
|
||||
|
||||
get id(): string {
|
||||
return this.fileId;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user