diff --git a/front/app/src/common/crud/crud.module.ts b/front/app/src/common/crud/crud.module.ts index 537bf865..4f53e47d 100644 --- a/front/app/src/common/crud/crud.module.ts +++ b/front/app/src/common/crud/crud.module.ts @@ -16,6 +16,7 @@ import { DateTypeComponent } from "./types/date.type"; import { ApiService, CrudService } from "./crud.service"; import { CrudFormlyJsonschemaService } from "./crud-formly-jsonschema.service"; import { NgbModule} from "@ng-bootstrap/ng-bootstrap"; +import { allIcons, NgxBootstrapIconsModule } from "ngx-bootstrap-icons"; import { JsonschemasService } from "./jsonschemas.service"; import { MultiSchemaTypeComponent } from "./types/multischema.type"; import { ForeignkeyTypeComponent } from "./types/foreignkey.type"; @@ -49,6 +50,7 @@ import { DictionaryService } from "./types/dictionary.service"; HttpClientModule, FormsModule, NgbModule, + NgxBootstrapIconsModule.pick(allIcons), //BrowserAnimationsModule, ReactiveFormsModule, FormlyModule.forRoot({ diff --git a/front/app/src/common/crud/jsonschemas.service.ts b/front/app/src/common/crud/jsonschemas.service.ts index dcac005a..8e77742d 100644 --- a/front/app/src/common/crud/jsonschemas.service.ts +++ b/front/app/src/common/crud/jsonschemas.service.ts @@ -38,7 +38,7 @@ export class JsonschemasService { delete resource.properties[prop_name] } else if (this.is_reference(prop)) { this.resolveReference(resource, prop); - } else if (prop.hasOwnProperty('oneOf')) { + } else if (this.is_union(prop)) { for (let i in prop.oneOf) { this.resolveReference(resource, prop.oneOf[i]); } diff --git a/front/app/src/common/crud/types/array.type.ts b/front/app/src/common/crud/types/array.type.ts index eedad435..1f3b0382 100644 --- a/front/app/src/common/crud/types/array.type.ts +++ b/front/app/src/common/crud/types/array.type.ts @@ -7,36 +7,38 @@ import { FieldArrayType } from '@ngx-formly/core';
{{ props.description }}
-