Skip to content

Commit

Permalink
fix(add-value): paragraph not showing as textarea (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelez committed Jul 20, 2023
1 parent fd3ff9e commit 83a0854
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Expand Up @@ -6,6 +6,7 @@
*ngSwitchCase="'ReadTextValueAsString'"
[mode]="mode"
[guiElement]="textValueGuiEle"
[textArea]="textArea"
></app-text-value-as-string>
<app-text-value-as-html
#createVal
Expand Down
Expand Up @@ -63,6 +63,8 @@ export class AddValueComponent implements OnInit, AfterViewInit {
// gui element in case of textValue
textValueGuiEle: 'simpleText' | 'textArea' | 'richText';

textArea = false;

ontoIri: string;

constructor(
Expand Down Expand Up @@ -97,6 +99,10 @@ export class AddValueComponent implements OnInit, AfterViewInit {
this.textValueGuiEle = this._valueService.getTextValueGuiEle(
this.resourcePropertyDefinition.guiElement
);

if (this.textValueGuiEle === 'textArea') {
this.textArea = true;
}
}
}
}
Expand Down

0 comments on commit 83a0854

Please sign in to comment.