RED-7754: Fixed navigation after closing edit.
This commit is contained in:
parent
cb843ece0f
commit
d4160074e5
@ -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 }),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user