summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/maas/use/use-application.component.html
diff options
context:
space:
mode:
authorkaixiliu <liukaixi@chinamobile.com>2025-01-07 11:19:22 +0800
committerkaixiliu <liukaixi@chinamobile.com>2025-01-07 14:13:36 +0800
commitc20b305db465c51364c8c62d61fc6c964c8000d7 (patch)
treed07902ca160cfeda3cb87054c1f3dab7c1f463b7 /usecaseui-portal/src/app/views/maas/use/use-application.component.html
parent17e3b1a42c4fff3bd0741e2bfac242c7b6eadf81 (diff)
Add functionalityHEADmaster
Display of content in markdown format Issue-ID: USECASEUI-844 Change-Id: I5907225117e5405e6ac7bff7405fedbb497dce6e Signed-off-by: kaixiliu <liukaixi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/maas/use/use-application.component.html')
-rw-r--r--usecaseui-portal/src/app/views/maas/use/use-application.component.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/usecaseui-portal/src/app/views/maas/use/use-application.component.html b/usecaseui-portal/src/app/views/maas/use/use-application.component.html
index f8c65794..6509fbbe 100644
--- a/usecaseui-portal/src/app/views/maas/use/use-application.component.html
+++ b/usecaseui-portal/src/app/views/maas/use/use-application.component.html
@@ -34,7 +34,7 @@
</div>
</div>
<div class="question-container">
- <span class="question-text">{{ chat.question }}</span>
+ <markdown class="question-text" [data]="chat.question"></markdown>
</div>
</div>
<br>
@@ -45,8 +45,11 @@
[nz-tooltip]="'maas.copy' | translate"></span>
</div>
<span class="answer-text">
- <span class="answer" [ngClass]="{'hidden-cursor': chat.status==='finished'}" #answerText
- id="answerText">{{chat.answer}}</span>
+ <markdown appCodeBlock class="markdown answer-markdown" [ngClass]="{'hidden-cursor': chat.status==='finished'}" *ngIf="chat.answer else default" [data]="chat.answer"></markdown>
+ <ng-template #default>
+ <span class="answer default" [ngClass]="{'hidden-cursor': chat.status==='finished'}" #answerText>
+ </span>
+ </ng-template>
</span>
</div>
<br>