fix(devtools): use isLazy flag to determine disabled state for action button

Refactors the logic that disables the action button for lazy-loaded routes.
Now relies on the isLazy property from the route data instead of string comparisons on the component field.
This commit is contained in:
SkyZeroZx
2025-11-13 10:00:51 -05:00
committed by Jessica Janiuk
parent c137f1fe91
commit 4126ef1e94
@@ -67,7 +67,7 @@
[data]="data"
actionBtnType="view-source"
actionBtnTooltip="View source"
[actionBtnDisabled]="data.component.includes('Lazy')"
[actionBtnDisabled]="!!data?.isLazy"
(actionBtnClick)="viewComponentSource(data.component)"
></tr>
} @else {