File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 11< ng-container [ngSwitch] ="linkType ">
2+ < a *ngSwitchCase ="'disabled' "
3+ [ngClass] ="getLinkClass() "
4+ [appHtmlAttr] ="item.attributes "
5+ >
6+ < i *ngIf ="helper.hasIcon(item) " [ngClass] ="item | appSidebarNavIcon "> </ i >
7+ < ng-container > {{item.name}}</ ng-container >
8+ < span *ngIf ="helper.hasBadge(item) " [ngClass] ="item | appSidebarNavBadge "> {{ item.badge.text }}</ span >
9+ </ a >
210 < a *ngSwitchCase ="'external' "
3- [ngClass] ="getLinkClass() "
4- href ="{{item.url}} "
5- [appHtmlAttr] ="item.attributes ">
11+ [ngClass] ="getLinkClass() "
12+ [href] ="item.url "
13+ [appHtmlAttr] ="item.attributes "
14+ >
615 < i *ngIf ="helper.hasIcon(item) " [ngClass] ="item | appSidebarNavIcon "> </ i >
716 < ng-container > {{item.name}}</ ng-container >
817 < span *ngIf ="helper.hasBadge(item) " [ngClass] ="item | appSidebarNavBadge "> {{ item.badge.text }}</ span >
1423 [attr.disabled] ="isDisabled() "
1524 routerLinkActive ="active "
1625 [routerLink] ="item.url "
17- (click) ="hideMobile() ">
26+ (click) ="hideMobile() "
27+ >
1828 < i *ngIf ="helper.hasIcon(item) " [ngClass] ="item | appSidebarNavIcon "> </ i >
1929 < ng-container > {{item.name}}</ ng-container >
2030 < span *ngIf ="helper.hasBadge(item) " [ngClass] ="item | appSidebarNavBadge "> {{ item.badge.text }}</ span >
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export class AppSidebarNavLinkComponent implements OnInit {
3737 }
3838
3939 public getLinkType ( ) {
40- return this . isExternalLink ( ) ? 'external' : 'link' ;
40+ return this . isDisabled ( ) ? 'disabled' : this . isExternalLink ( ) ? 'external' : 'link' ;
4141 }
4242
4343 public hasVariant ( ) {
You can’t perform that action at this time.
0 commit comments