Skip to content

Commit af3cdc2

Browse files
authored
fix(text-value-as-string): links in text values (DEV-797) (#718)
* fix(text-value-as-string): only use linkify pipe if the gui-element is not richtext * chore(text-value-as-string): remove 'this' from html
1 parent 86fc2a7 commit af3cdc2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/app/workspace/resource/values/text-value/text-value-as-string/text-value-as-string.component.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<span *ngIf="mode === 'read'; else showForm" class="read-mode-view">
2-
<!-- TODO in DEV-797: appLinkify pipe should only be used if property's gui-element is not richt-text; I had the same issue in regions -->
3-
<span class="rm-value text-value" [innerHtml]="valueFormControl.value | appLinkify" style="white-space: pre-wrap;"></span>
2+
<!-- only use linkify pipe if property's gui-element is not richtext; I had the same issue in regions -->
3+
<span class="rm-value text-value" [innerHtml]="guiElement === 'richText' ? valueFormControl.value : valueFormControl.value | appLinkify" style="white-space: pre-wrap;"></span>
44
<span class="rm-comment" *ngIf="shouldShowComment">{{commentFormControl.value}}</span>
55
</span>
66
<ng-template #showForm>

0 commit comments

Comments
 (0)