Merge branch 'RED-7754' into 'master'

RED-7754: Fixed navigation after closing edit.

See merge request redactmanager/red-ui!139
This commit is contained in:
Dan Percic 2023-10-13 12:18:03 +02:00
commit ac4860081b

View File

@ -123,7 +123,11 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr
}
async editFileAttribute($event: MouseEvent): Promise<void> {
if (!this.file.isInitialProcessing && this.permissionsService.canEditFileAttributes(this.file, this.dossier)) {
if (
!this.file.isInitialProcessing &&
this.permissionsService.canEditFileAttributes(this.file, this.dossier) &&
!this.isInEditMode
) {
$event.stopPropagation();
this.fileAttributesService.openAttributeEdits.mutate(value =>
value.push({ attribute: this.fileAttribute.id, file: this.file.id }),