ngx-vector-components 4.37.0 → 4.37.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 +7 -1
- package/esm2020/lib/services/auth.service.mjs +2 -2
- package/esm2020/lib/services/profile.service.mjs +3 -2
- package/fesm2015/ngx-vector-components.mjs +3 -2
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +3 -2
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- package/lib/services/profile.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1191,7 +1191,7 @@ class AuthService {
|
|
|
1191
1191
|
this.storageService.setToken(response.accessToken);
|
|
1192
1192
|
this.storageService.setUsername(response.userName);
|
|
1193
1193
|
this.storageService.setRefreshToken(response.refreshToken);
|
|
1194
|
-
return this.profileService.getUserProfile();
|
|
1194
|
+
return this.profileService.getUserProfile(response);
|
|
1195
1195
|
}));
|
|
1196
1196
|
}
|
|
1197
1197
|
getTokenByRefreshToken(refreshToken) {
|
|
@@ -1607,7 +1607,7 @@ class ProfileService {
|
|
|
1607
1607
|
this.hasAnyFintechPermission = !!fintech?.actions?.length;
|
|
1608
1608
|
this.hasAnyMarketplacePermission = !!marketplace?.actions?.length;
|
|
1609
1609
|
}
|
|
1610
|
-
getUserProfile() {
|
|
1610
|
+
getUserProfile(response) {
|
|
1611
1611
|
return this.http.get('connect/userinfo').pipe(tap((response) => {
|
|
1612
1612
|
if (response.firstName) {
|
|
1613
1613
|
this.profileFirstName$.next(response.firstName);
|
|
@@ -1640,6 +1640,7 @@ class ProfileService {
|
|
|
1640
1640
|
});
|
|
1641
1641
|
this.moduleProfile$.next(allModules);
|
|
1642
1642
|
}));
|
|
1643
|
+
return response;
|
|
1643
1644
|
}
|
|
1644
1645
|
userHasPermission(action) {
|
|
1645
1646
|
if (!action) {
|