diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html
index 9cd1b42bd..4ccdb5001 100644
--- a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html
+++ b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html
@@ -1,5 +1,5 @@
-
+
{{ fileAttributeValue || '-' }}
{{ fileAttributeValue ? (fileAttributeValue | date : 'd MMM yyyy') : '-' }}
@@ -24,23 +24,23 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.ts b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.ts
index 982983b49..b4e1b40b4 100644
--- a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.ts
+++ b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.ts
@@ -59,8 +59,10 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr
}
async editFileAttribute($event: MouseEvent): Promise {
- $event.stopPropagation();
- this.#toggleEdit();
+ if (!this.file.isInitialProcessing && this.permissionsService.canEditFileAttributes(this.file, this.dossier)) {
+ $event.stopPropagation();
+ this.#toggleEdit();
+ }
}
async save() {
@@ -139,7 +141,7 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr
#focusOnEditInput(): void {
setTimeout(() => {
const input = document.getElementById(this.fileAttribute.id);
- input.focus();
+ input?.focus();
}, 100);
}
}