mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jessica Janiuk
parent
c137f1fe91
commit
4126ef1e94
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user