Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Lanzilotto committed Dec 15, 2023
1 parent e6cd1f5 commit 7fbd077
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 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.83
- Improvements and bug fixing

### 2.4.82
- 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.82",
"version": "2.4.83",
"scripts": {
"ng": "ng",
"start": "ng serve --aot",
Expand Down
19 changes: 10 additions & 9 deletions src/app/department-edit-add/department-edit-add.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,9 @@ export class DepartmentEditAddComponent implements OnInit, AfterViewInit, Compon
if (!this.public_Key.includes("GRO")) {
this.isVisibleGroups = false;
}

this.getProjectPlan()
if (this.isVisibleGroups === true) {
this.getProjectPlan()
}
}

getProjectPlan() {
Expand All @@ -358,11 +359,11 @@ export class DepartmentEditAddComponent implements OnInit, AfterViewInit, Compon
if (projectProfileData.profile_type === 'free') {
if (projectProfileData.trial_expired === false) {
this.prjct_profile_name = PLAN_NAME.B + " plan (trial)"
this.isVisibleGroups = false
this.isVisibleGroups = true
} else {
this.prjct_profile_name = "Free plan";
this.isVisibleGroups = false

}
} else if (projectProfileData.profile_type === 'payment') {
if (this.subscription_is_active === true) {
Expand All @@ -385,11 +386,11 @@ export class DepartmentEditAddComponent implements OnInit, AfterViewInit, Compon
} else if (projectProfileData.profile_name === PLAN_NAME.C) {
this.prjct_profile_name = PLAN_NAME.C + " plan";
this.isVisibleGroups = true

}

} else if (this.subscription_is_active === false) {

if (projectProfileData.profile_name === PLAN_NAME.A) {
this.prjct_profile_name = PLAN_NAME.A + " plan";
this.isVisibleGroups = false
Expand Down Expand Up @@ -1143,7 +1144,7 @@ export class DepartmentEditAddComponent implements OnInit, AfterViewInit, Compon
this.logger.log('[DEPT-EDIT-ADD] - EDIT - BOT ID WHEN EDIT IS PRESSED IF USER ! DOES NOT SELECT A ANOTHER BOT', this.botId);
this.logger.log('[DEPT-EDIT-ADD] - EDIT - DEPT_ROUTING WHEN EDIT IS PRESSED ', this.dept_routing);
this.logger.log('[DEPT-EDIT-ADD] - EDIT - ROUTING_SELECTED WHEN EDIT IS PRESSED ', this.ROUTING_SELECTED);

if (this.selectedBotId === undefined) {
this.botIdEdit = this.botId
} else {
Expand Down Expand Up @@ -1172,8 +1173,8 @@ export class DepartmentEditAddComponent implements OnInit, AfterViewInit, Compon

goTo_BotEditAddPage_CREATE() {
// this.router.navigate(['project/' + this.project._id + '/bots/bot-select-type']);
this.router.navigate(['project/' + this.project._id + '/bots/my-chatbots/all']);
this.router.navigate(['project/' + this.project._id + '/bots/my-chatbots/all']);

}

// TEST CHAT21-API-NODEJS router.get('/:departmentid/operators'
Expand Down

0 comments on commit 7fbd077

Please sign in to comment.