@chat21/chat21-ionic 3.2.2 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,8 +1,17 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.2.3 in PROD
4
+
5
+ ### 3.2.3-rc.1
6
+ - added: redirect to dashboard Login page in case of login error
7
+ - added: condition for docs
8
+
3
9
  ### 3.2.2 in PROD
4
10
  - bug-fixed: unassigned url not logged-in as well
5
11
 
12
+ ### 3.2.2-rc.1
13
+ - bug-fixed: unassigned url not logged-in as well
14
+
6
15
  ### 3.2.1 in PROD
7
16
  - bug-fixed: cannot read property of undefined reading logger.error into brand-service.ts
8
17
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
3
  "author": "Tiledesk SRL",
4
- "version": "3.2.2",
4
+ "version": "3.2.3",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -808,6 +808,7 @@ export class AppComponent implements OnInit {
808
808
  this.messagingAuthService.createCustomToken(data.token)
809
809
  }).catch(error => {
810
810
  this.logger.error('[APP-COMP] initAuthentication SIGNINWITHCUSTOMTOKEN error::', error)
811
+ this.goToDashboardLogin()
811
812
  })
812
813
  } else {
813
814
  this.logger.warn('[APP-COMP] >>> I AM NOT LOGGED IN <<<')
@@ -115,7 +115,7 @@
115
115
  </span>
116
116
  </section>
117
117
 
118
- <section class="user-details-help-center">
118
+ <section *ngIf="docEnabled" class="user-details-help-center">
119
119
  <span class="material-icons user-details-help-center-icon">support</span>
120
120
  <span class="user-details-help-center" (click)="goToHelpCenter()"> Help center</span>
121
121
  </section>
@@ -14,6 +14,7 @@ import { tranlatedLanguage } from '../../../chat21-core/utils/constants';
14
14
  import { avatarPlaceholder, getColorBck } from 'src/chat21-core/utils/utils-user';
15
15
  import { environment } from 'src/environments/environment';
16
16
  import { Project } from 'src/chat21-core/models/projects';
17
+ import { BRAND_BASE_INFO } from 'src/app/utils/utils-resources';
17
18
  @Component({
18
19
  selector: 'app-sidebar-user-details',
19
20
  templateUrl: './sidebar-user-details.component.html',
@@ -57,6 +58,9 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
57
58
 
58
59
  translationsMap: Map<string, string> = new Map();
59
60
 
61
+ docEnabled: boolean = true;
62
+ BRAND_BASE_INFO = BRAND_BASE_INFO;
63
+
60
64
  constructor(
61
65
  private translate: TranslateService,
62
66
  public tiledeskAuthService: TiledeskAuthService,
@@ -77,6 +81,9 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
77
81
  this.listenTocurrentProjectUserUserAvailability$();
78
82
  this.listenToCurrentStoredProject();
79
83
  this.getOSCODE();
84
+ if(BRAND_BASE_INFO['DOCS'] === 'false' || !BRAND_BASE_INFO['DOCS']){
85
+ this.docEnabled = false
86
+ }
80
87
  // this.listenOpenUserSidebarEvent();
81
88
  }
82
89
 
@@ -5,7 +5,8 @@ export const BRAND_BASE_INFO: { [key: string] : string} ={
5
5
  COMPANY_SITE_URL:"https://www.tiledesk.com",
6
6
  CONTACT_US_EMAIL: "support@tiledesk.com",
7
7
  FAVICON: "https://tiledesk.com/wp-content/uploads/2022/07/tiledesk_v13-300x300.png",
8
- META_TITLE:"Tiledesk - Open Source Live Chat"
8
+ META_TITLE:"Tiledesk - Open Source Live Chat",
9
+ DOCS: "true"
9
10
  }
10
11
 
11
12
  export var LOGOS_ITEMS: { [key: string] : { label: string, icon: string }} ={