File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
report-app/src/app/pages/report-viewer Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -173,15 +173,17 @@ <h4>Repair System Prompt</h4>
173
173
</ expansion-panel >
174
174
175
175
@if (report.details.summary.aiSummary !== undefined) {
176
- < button class ="fab " (click) ="isAiAssistantVisible.set(true) ">
176
+ < button #aiAssistButton class ="fab " (click) ="isAiAssistantVisible.set(true) ">
177
177
< span class ="material-symbols-outlined "> smart_toy</ span >
178
178
</ button >
179
179
180
- < app-ai-assistant
181
- [class.hidden] ="!isAiAssistantVisible() "
182
- [reportGroupId] ="reportGroupId() "
183
- (close) ="isAiAssistantVisible.set(false) "
184
- />
180
+ @defer (on interaction(aiAssistButton)) {
181
+ < app-ai-assistant
182
+ [class.hidden] ="!isAiAssistantVisible() "
183
+ [reportGroupId] ="reportGroupId() "
184
+ (close) ="isAiAssistantVisible.set(false) "
185
+ />
186
+ }
185
187
}
186
188
187
189
@if (missingDeps().length > 0) {
346
348
347
349
348
350
351
+
352
+
349
353
}}%)
350
354
</ span >
351
355
</ div >
You can’t perform that action at this time.
0 commit comments