diff --git a/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.html b/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.html index 98be17cc8..1cb7048db 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.html @@ -21,8 +21,8 @@
- -
+
+
@@ -34,7 +34,7 @@ icon="iqser:trash" >
- +
) { + moveItemInArray(this.entry.componentValues, event.previousIndex, event.currentIndex); + this.form = this.#getForm(); + } + #getForm() { const form = this._formBuilder.group({}); this.entry.componentValues.forEach((value, index) => { diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts index 0ec9eb52f..f21e31e81 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts @@ -128,7 +128,6 @@ const components = [ FileHeaderComponent, DocumineExportComponent, StructuredComponentManagementComponent, - EditableStructuredComponentValueComponent, ]; @NgModule({ @@ -164,6 +163,7 @@ const components = [ DisableStopPropagationDirective, SelectedAnnotationsTableComponent, SelectedAnnotationsListComponent, + EditableStructuredComponentValueComponent, ], providers: [FilePreviewDialogService, ManualRedactionService, DocumentUnloadedGuard, TablesService], })