Skip to content


Browse files Browse the repository at this point in the history
fix(create-link-value): bring back functionality to create a new link…
… resource instance when adding a new value to a linked resource class property (#709)
  • Loading branch information
mdelez committed Apr 7, 2022
1 parent 5efd981 commit c6fe803
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -13,7 +13,7 @@
<app-time-value #createVal *ngSwitchCase="constants.TimeValue" [mode]="mode"></app-time-value>
<app-geoname-value #createVal *ngSwitchCase="constants.GeonameValue" [mode]="mode"></app-geoname-value>
<app-link-value #createVal *ngSwitchCase="constants.LinkValue" [mode]="mode"
[parentResource]="parentResource" [propIri]=""></app-link-value>
[parentResource]="parentResource" [propIri]="" [currentOntoIri]="ontoIri"></app-link-value>
<app-date-value #createVal *ngSwitchCase="constants.DateValue" [mode]="mode"></app-date-value>
<app-list-value #createVal *ngSwitchCase="constants.ListValue" [mode]="mode"
Expand Down
Expand Up @@ -57,13 +57,15 @@ export class AddValueComponent implements OnInit, AfterViewInit {
// gui element in case of textValue
textValueGuiEle: 'simpleText' | 'textArea' | 'richText';

ontoIri: string;

@Inject(DspApiConnectionToken) private _dspApiConnection: KnoraApiConnection,
private _valueOperationEventService: ValueOperationEventService,
private _valueService: ValueService) { }

ngOnInit() {

this.ontoIri = this.parentResource.type.split('#')[0];
this.mode = 'create';

// since simple text values and rich text values share the same object type 'TextValue',
Expand Down

0 comments on commit c6fe803

Please sign in to comment.