From c8d63b9377e0b89387d887a9ff5fed6bc9da53fe Mon Sep 17 00:00:00 2001 From: Nicola Lanzilotto Date: Tue, 19 Dec 2023 11:08:13 +0100 Subject: [PATCH] Improvements and bug fixing --- CHANGELOG.md | 3 +++ package-lock.json | 2 +- package.json | 2 +- .../settings-sidebar/settings-sidebar.component.ts | 11 +++++++---- src/app/home/home.component.html | 2 +- src/app/home/home.component.ts | 14 ++++++++++++++ 6 files changed, 27 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48f1802ee814..aae46efa1953 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # tiledesk-dashboard +### 2.4.86 +- Improvements and bug fixing + ### 2.4.85 - Improvements and bug fixing diff --git a/package-lock.json b/package-lock.json index d44ed0149e55..b7cb21c8b614 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@tiledesk/tiledesk-dashboard", - "version": "2.4.85", + "version": "2.4.86", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9a3faf0bb0e9..2a9c77948240 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tiledesk/tiledesk-dashboard", - "version": "2.4.85", + "version": "2.4.86", "scripts": { "ng": "ng", "start": "ng serve --aot", diff --git a/src/app/components/settings-sidebar/settings-sidebar.component.ts b/src/app/components/settings-sidebar/settings-sidebar.component.ts index cbdc2c4cefc8..e1a3b7b08ddb 100755 --- a/src/app/components/settings-sidebar/settings-sidebar.component.ts +++ b/src/app/components/settings-sidebar/settings-sidebar.component.ts @@ -274,10 +274,9 @@ export class SettingsSidebarComponent implements OnInit { } if (key.includes('KNB')) { - let etk = key.split(':') - if (etk[1] === 'F') { - //this.isVisibleKNB = false; // <---- CHANGE CHANGE CHANGE CHANGE - this.isVisibleKNB = true; // <---- CHANGE CHANGE CHANGE CHANGE + let knb = key.split(':') + if (knb[1] === 'F') { + this.isVisibleKNB = false; } else { this.isVisibleKNB = true; } @@ -298,6 +297,10 @@ export class SettingsSidebarComponent implements OnInit { if (!this.public_Key.includes('ETK')) { this.isVisibleETK = false } + + if (!this.public_Key.includes('KNB')) { + this.isVisibleKNB = false + } } getRoutingTranslation() { diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 13e4a841cffb..357a1bb62e65 100755 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -488,7 +488,7 @@

- + diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 1f392f1cce7f..018dc4971b31 100755 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -117,6 +117,7 @@ export class HomeComponent implements OnInit, OnDestroy, AfterViewInit { isVisibleOPH: boolean; isVisibleHomeBanner: boolean; isVisiblePay: boolean; + isVisibleKNB: boolean; hidechangelogrocket: boolean; onlyOwnerCanManageTheAccountPlanMsg: string; @@ -2671,6 +2672,15 @@ export class HomeComponent implements OnInit, OnDestroy, AfterViewInit { } } + if (key.includes('KNB')) { + let knb = key.split(':') + if (knb[1] === 'F') { + this.isVisibleKNB = false; + } else { + this.isVisibleKNB = true; + } + } + }); @@ -2703,6 +2713,10 @@ export class HomeComponent implements OnInit, OnDestroy, AfterViewInit { // this.logger.log('PUBLIC-KEY (HOME) - key.includes("PPB")', this.public_Key.includes("PPB")); this.isVisiblePay = false; } + + if (!this.public_Key.includes('KNB')) { + this.isVisibleKNB = false + } } checkPromoURL() {