@chat21/chat21-ionic 3.4.0 → 3.4.1

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,5 +1,8 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.4.1 in PROD
4
+ - bug-fixed: supportMode parameter is not typed as boolean
5
+
3
6
  ### 3.4.0 in PROD
4
7
 
5
8
  ### 3.4.0-rc.1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
3
  "author": "Tiledesk SRL",
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -36,8 +36,6 @@ export class CannedResponseComponent implements OnInit {
36
36
 
37
37
  public arrowkeyLocation = -1
38
38
 
39
- tparams: any;
40
- PLAN_NAME = PLAN_NAME
41
39
 
42
40
  private logger: LoggerService = LoggerInstance.getInstance();
43
41
  constructor(
@@ -50,7 +48,6 @@ export class CannedResponseComponent implements OnInit {
50
48
 
51
49
  ngOnInit() {
52
50
  this.loggedUser = this.tiledeskAuthService.getCurrentUser()
53
- this.tparams = {'plan_name': PLAN_NAME.A}
54
51
  }
55
52
 
56
53
  ngOnChanges(changes: SimpleChange){
@@ -367,7 +367,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
367
367
  }
368
368
 
369
369
  getOSCODE() {
370
- this.supportMode = this.g.supportMode
370
+ this.supportMode = this.g.supportMode;
371
371
  this.logger.log('[CONVS-DETAIL] AppConfigService getAppConfig supportMode', this.supportMode)
372
372
  this.public_Key = this.appConfigProvider.getConfig().t2y12PruGU9wUtEGzBJfolMIgK
373
373
  this.logger.log('[CONVS-DETAIL] AppConfigService getAppConfig public_Key', this.public_Key)
@@ -6,7 +6,7 @@ import { BehaviorSubject } from 'rxjs';
6
6
  import { LoggerService } from 'src/chat21-core/providers/abstract/logger.service';
7
7
  import { LoggerInstance } from 'src/chat21-core/providers/logger/loggerInstance';
8
8
  import { Globals } from 'src/app/utils/globals';
9
- import { getParameterByName, stringToBoolean } from 'src/chat21-core/utils/utils';
9
+ import { getParameterByName, getParameterValue, stringToBoolean } from 'src/chat21-core/utils/utils';
10
10
  import { environment } from 'src/environments/environment';
11
11
 
12
12
  @Injectable({
@@ -51,7 +51,7 @@ export class GlobalSettingsService {
51
51
  /**SET PERSISTENCE parameter */
52
52
  this.globals.persistence = this.appConfigService.getConfig().authPersistence
53
53
  /**SET SUPPORTMODE parameter */
54
- this.globals.supportMode = this.appConfigService.getConfig().supportMode
54
+ this.globals.supportMode = getParameterValue('supportMode', this.appConfigService.getConfig());
55
55
  /** INIT STORAGE SERVICE */
56
56
  this.appStorageService.initialize(environment.storage_prefix, this.globals.persistence, '')
57
57