Skip to content

Commit

Permalink
Improvements and bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Lanzilotto committed Dec 19, 2023
1 parent 53d9b1b commit c8d63b9
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# tiledesk-dashboard

### 2.4.86
- Improvements and bug fixing

### 2.4.85
- Improvements and bug fixing

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tiledesk/tiledesk-dashboard",
"version": "2.4.85",
"version": "2.4.86",
"scripts": {
"ng": "ng",
"start": "ng serve --aot",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ <h2></h2>
<!-- ----------------------- -->
<!-- Child 7 KB -->
<!-- ----------------------- -->
<ng-container *ngIf="item.type === 'child7'">
<ng-container *ngIf="item.type === 'child7' && isVisibleKNB">
<appdashboard-home-kb *ngIf="displayKnowledgeBase" (trackUserAction)="trackUserAction($event)">
</appdashboard-home-kb>
</ng-container>
Expand Down
14 changes: 14 additions & 0 deletions src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export class HomeComponent implements OnInit, OnDestroy, AfterViewInit {
isVisibleOPH: boolean;
isVisibleHomeBanner: boolean;
isVisiblePay: boolean;
isVisibleKNB: boolean;

hidechangelogrocket: boolean;
onlyOwnerCanManageTheAccountPlanMsg: string;
Expand Down Expand Up @@ -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;
}
}


});

Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit c8d63b9

Please sign in to comment.