diff --git a/apps/red-ui/src/app/models/file/type-value.wrapper.ts b/apps/red-ui/src/app/models/file/type-value.wrapper.ts index 0e9636b88..e1e593c0c 100644 --- a/apps/red-ui/src/app/models/file/type-value.wrapper.ts +++ b/apps/red-ui/src/app/models/file/type-value.wrapper.ts @@ -1,10 +1,15 @@ +import { Listable } from '@iqser/common-ui'; import { TypeValue } from '@redaction/red-ui-http'; -export class TypeValueWrapper { +export class TypeValueWrapper implements Listable { entries: string[] = []; constructor(public typeValue: TypeValue, public label?: string, public virtual?: boolean) {} + get id() { + return this.typeValue.type; + } + get addToDictionaryAction() { return this.typeValue.addToDictionaryAction; } diff --git a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts b/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts index 73479ab63..8e2b1a185 100644 --- a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts +++ b/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts @@ -6,11 +6,11 @@ import { FileAttributeConfig, FileAttributesConfig, FileAttributesControllerServ import { Observable } from 'rxjs'; import { map, startWith } from 'rxjs/operators'; import { Toaster } from '@services/toaster.service'; -import { DefaultListingServices, ListingComponent, TableColumnConfig } from '@iqser/common-ui'; +import { DefaultListingServices, Listable, ListingComponent, TableColumnConfig } from '@iqser/common-ui'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; -export interface Field { - id?: string; +export interface Field extends Listable { + id: string; csvColumn: string; name: string; type: FileAttributeConfig.TypeEnum; @@ -225,6 +225,7 @@ export class FileAttributesCsvImportDialogComponent extends ListingComponent imp const data = await this._dictionaryControllerService.getColors(this._appStateService.activeDossierTemplateId).toPromise(); this._colorsObj = data; const entities = Object.keys(data).map(key => ({ + id: key, key, value: data[key] })); diff --git a/apps/red-ui/src/assets/config/config.json b/apps/red-ui/src/assets/config/config.json index 4b001a0b1..7131c849a 100644 --- a/apps/red-ui/src/assets/config/config.json +++ b/apps/red-ui/src/assets/config/config.json @@ -1,6 +1,6 @@ { - "OAUTH_URL": "https://red-staging.iqser.cloud/auth/realms/redaction", - "API_URL": "https://red-staging.iqser.cloud/redaction-gateway-v1", + "OAUTH_URL": "https://dom1.iqser.cloud/auth/realms/redaction", + "API_URL": "https://dom1.iqser.cloud/redaction-gateway-v1", "OAUTH_CLIENT_ID": "redaction", "BACKEND_APP_VERSION": "4.4.40", "FRONTEND_APP_VERSION": "1.1",