@chat21/chat21-ionic 3.2.0 → 3.2.2
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,11 @@
|
|
|
1
1
|
# chat21-ionic ver 3.0
|
|
2
2
|
|
|
3
|
+
### 3.2.2 in PROD
|
|
4
|
+
- bug-fixed: unassigned url not logged-in as well
|
|
5
|
+
|
|
6
|
+
### 3.2.1 in PROD
|
|
7
|
+
- bug-fixed: cannot read property of undefined reading logger.error into brand-service.ts
|
|
8
|
+
|
|
3
9
|
### 3.2.0 in PROD
|
|
4
10
|
- changed: API_URL template key in favour of SERVER_BASE_URL
|
|
5
11
|
|
package/package.json
CHANGED
|
@@ -274,14 +274,15 @@ export class ConversationListPage implements OnInit {
|
|
|
274
274
|
// }
|
|
275
275
|
this.logger.log('[CONVS-LIST-PAGE] - HAS CLIKED OPEN UNSERVED REQUEST IFRAME',this.hasClickedOpenUnservedConvIframe )
|
|
276
276
|
const DASHBOARD_BASE_URL = this.appConfigProvider.getConfig().dashboardUrl
|
|
277
|
+
const tiledeskToken = this.tiledeskAuthService.getTiledeskToken();
|
|
277
278
|
// http://localhost:4204/#/projects-for-panel
|
|
278
279
|
this.PROJECTS_FOR_PANEL_URL = DASHBOARD_BASE_URL + '#/projects-for-panel'
|
|
279
280
|
this.UNASSIGNED_CONVS_URL = DASHBOARD_BASE_URL + '#/project/' + this.lastProjectId + '/unserved-request-for-panel'
|
|
280
281
|
|
|
281
282
|
if (event.event === 'pinbtn') {
|
|
282
|
-
this.IFRAME_URL = this.PROJECTS_FOR_PANEL_URL
|
|
283
|
+
this.IFRAME_URL = this.PROJECTS_FOR_PANEL_URL + '?token='+ tiledeskToken
|
|
283
284
|
} else {
|
|
284
|
-
this.IFRAME_URL = this.UNASSIGNED_CONVS_URL
|
|
285
|
+
this.IFRAME_URL = this.UNASSIGNED_CONVS_URL + '?token='+ tiledeskToken
|
|
285
286
|
}
|
|
286
287
|
this.logger.log('[CONVS-LIST-PAGE] - HAS CLIKED OPEN UNSERVED REQUEST IFRAME > UNASSIGNED CONVS URL',this.UNASSIGNED_CONVS_URL )
|
|
287
288
|
this.openUnassignedConversations(this.IFRAME_URL, event)
|
|
@@ -185,17 +185,17 @@ export class BrandService {
|
|
|
185
185
|
if (url && url !== 'CHANGEIT') {
|
|
186
186
|
const data = await this.httpClient.get(url).toPromise();
|
|
187
187
|
|
|
188
|
-
|
|
188
|
+
console.log('[BRAND-SERV] **** GET BRAND FROM URL ****', url);
|
|
189
189
|
|
|
190
190
|
this.brand =data
|
|
191
191
|
|
|
192
|
-
|
|
192
|
+
console.log('[BRAND-SERV] loadBrand - brand: ', this.brand);
|
|
193
193
|
|
|
194
194
|
const resources = new BrandResources(this);
|
|
195
195
|
resources.loadResources()
|
|
196
196
|
}
|
|
197
197
|
} catch (err) {
|
|
198
|
-
|
|
198
|
+
console.error('[BRAND-SERV] loadBrand error : ', err);
|
|
199
199
|
|
|
200
200
|
this.brand = this._brand;
|
|
201
201
|
}
|