Skip to content
Permalink
Browse files
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
  • Loading branch information
mdelez committed Apr 22, 2022
1 parent 86fc2a7 commit af3cdc26015483b164c053b45edf31c7f6aedbf5
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,6 +1,6 @@
<span *ngIf="mode === 'read'; else showForm" class="read-mode-view">
<!-- 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 -->
<span class="rm-value text-value" [innerHtml]="valueFormControl.value | appLinkify" style="white-space: pre-wrap;"></span>
<!-- only use linkify pipe if property's gui-element is not richtext; I had the same issue in regions -->
<span class="rm-value text-value" [innerHtml]="guiElement === 'richText' ? valueFormControl.value : valueFormControl.value | appLinkify" style="white-space: pre-wrap;"></span>
<span class="rm-comment" *ngIf="shouldShowComment">{{commentFormControl.value}}</span>
</span>
<ng-template #showForm>

0 comments on commit af3cdc2

Please sign in to comment.