File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,12 @@ import { NavigableTab } from '../../tabs/navigable/navigable-tab';
35
35
<ng-content></ng-content>
36
36
37
37
<ht-navigable-tab-group *ngIf="this.tabs?.length" class="tabs">
38
- <ht-navigable-tab *ngFor="let tab of this.tabs" [path]="tab.path" [hidden]="tab.hidden">
38
+ <ht-navigable-tab
39
+ *ngFor="let tab of this.tabs"
40
+ [path]="tab.path"
41
+ [hidden]="tab.hidden"
42
+ [features]="tab.features"
43
+ >
39
44
{{ tab.label }}
40
45
</ht-navigable-tab>
41
46
</ht-navigable-tab-group>
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ export class NavigableTabComponent extends ContentHolder {
25
25
public replaceHistory ?: boolean ;
26
26
27
27
@Input ( )
28
- public features : string [ ] = [ ] ;
28
+ public features ? : string [ ] ;
29
29
30
30
public get featureFlags ( ) : string [ ] {
31
- return [ ...this . routeFeatures ( ) , ...this . features ] ;
31
+ return [ ...this . routeFeatures ( ) , ...( this . features ?? [ ] ) ] ;
32
32
}
33
33
34
34
private routeFeatures ( ) : string [ ] {
You can’t perform that action at this time.
0 commit comments