[Library]: small-tabs.component.ts: For active tab, set class by checking activeTab.customClass (not activeTab.statistics).

This commit is contained in:
Konstantina Galouni 2022-01-07 11:46:58 +02:00
parent 259ca4b5b1
commit dd7aeaa34f
1 changed files with 2 additions and 2 deletions

View File

@ -20,11 +20,11 @@ declare var UIkit: any;
<ng-container *ngIf="tabs.toArray().length > 2">
<ul class="uk-hidden@m uk-tab main-tabs uk-margin-remove uk-child-width-expand">
<!-- *ngFor="let activeTab of activeTabs"-->
<li [class]="'uk-active uk-padding-remove '+(activeTab.statistics ? ' statistics ' : '')">
<li [class]="'uk-active uk-padding-remove '+activeTab.customClass">
<a class="uk-width-1-1 uk-height-1-1">
<div class="tab-header">{{activeTab.title}}</div>
<div *ngIf="activeTab.num" class="number">{{activeTab.num | number}}</div>
<div *ngIf="activeTab.statistics" class="number">
<div *ngIf="activeTab.customClass == 'statistics'" class="number">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"></path>