Skip to content

Commit

Permalink
fix(text-value-as-string): links in text values (DEV-797) (#718)
Browse files Browse the repository at this point in the history
* 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 af3cdc2
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>
Expand Down

0 comments on commit af3cdc2

Please sign in to comment.