From 44bb9772a9c2947f6c62e70b197c0f22f7edbba7 Mon Sep 17 00:00:00 2001 From: argirok Date: Wed, 6 Apr 2022 18:02:15 +0300 Subject: [PATCH] tabs: add disabled tab, Content providers add check for other > 0 --- .../dataProvider/dataProvider.component.html | 2 +- utils/tabs/tab.component.ts | 2 +- utils/tabs/tabs.component.ts | 23 ++++++++++--------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/landingPages/dataProvider/dataProvider.component.html b/landingPages/dataProvider/dataProvider.component.html index 24ae400b..c45c31a5 100644 --- a/landingPages/dataProvider/dataProvider.component.html +++ b/landingPages/dataProvider/dataProvider.component.html @@ -122,7 +122,7 @@ [tabTitle]="'Software'" [tabNumber]="fetchSoftware.searchUtils.totalResults" [tabId]="'software'"> - diff --git a/utils/tabs/tab.component.ts b/utils/tabs/tab.component.ts index aa2f6981..453a795e 100644 --- a/utils/tabs/tab.component.ts +++ b/utils/tabs/tab.component.ts @@ -28,5 +28,5 @@ export class TabComponent { @Input('tabId') tabId: string; @Input('tabIcon') tabIcon: TabIcon; @Input ('active') active: boolean = false; - // @Input ('loaded') loaded: boolean = false; + @Input ('disabled') disabled: boolean = false; } diff --git a/utils/tabs/tabs.component.ts b/utils/tabs/tabs.component.ts index 9e735926..489648b2 100644 --- a/utils/tabs/tabs.component.ts +++ b/utils/tabs/tabs.component.ts @@ -27,12 +27,13 @@ import {TabComponent} from './tab.component';
  • @@ -50,22 +51,22 @@ import {TabComponent} from './tab.component'; - + + `