tango-app-ui-auth 3.3.1-beta.10 → 3.3.1-beta.11
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.
@@ -288,9 +288,9 @@ class TangoAuthLoginComponent {
|
|
288
288
|
this.service.userProfileDet().pipe(takeUntil(this.destroy$)).subscribe({
|
289
289
|
next: (res) => {
|
290
290
|
if (res && res.code == 200) {
|
291
|
-
if (res.data.userType === '
|
291
|
+
if (res.data.userType === 'tango') {
|
292
292
|
// console.log("adfadf")
|
293
|
-
this.router.navigate(['/manage/
|
293
|
+
this.router.navigate(['/manage/brands']);
|
294
294
|
// window.hj('identify', userId, {
|
295
295
|
// 'loginTime': this.dayjs().format('DD/MM/YYYY HH:mm'),
|
296
296
|
// 'clientName': res.data?.clientName,
|
@@ -303,8 +303,11 @@ class TangoAuthLoginComponent {
|
|
303
303
|
// window.pagesense.push(['identifyUser', res.data?.email]);
|
304
304
|
// window.pagesense.push(['trackUser', {'ClientName':res.data?.clientName, 'Email': res.data?.email, 'UserName':res.data?.userName, 'LoginTime': this.dayjs().format('DD/MM/YYYY HH:mm'), 'userId': res.data?._id } ]);
|
305
305
|
}
|
306
|
+
else if (res.data.userType === 'lead') {
|
307
|
+
this.router.navigate(['/explore']);
|
308
|
+
}
|
306
309
|
else {
|
307
|
-
this.router.navigate(['/manage/
|
310
|
+
this.router.navigate(['/manage/summary']);
|
308
311
|
}
|
309
312
|
this.gs.userAccess.next(res.data?.permission);
|
310
313
|
this.cd.detectChanges();
|