@resolveio/client-lib-core 1.3.16 → 1.3.17
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/esm2020/lib/auth/auth-guard.service.mjs +2 -2
- package/esm2020/lib/widgets/navbar-module/navbar-module.component.mjs +2 -2
- package/fesm2015/resolveio-client-lib-core.mjs +2 -2
- package/fesm2015/resolveio-client-lib-core.mjs.map +1 -1
- package/fesm2020/resolveio-client-lib-core.mjs +2 -2
- package/fesm2020/resolveio-client-lib-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4837,7 +4837,7 @@ class NavbarModuleComponent extends BaseComponent {
|
|
|
4837
4837
|
else {
|
|
4838
4838
|
this.currentRoute = this._services._router.url.replace(/\/[a-f0-9]{24}$/, '').replace(/\?.+$/, '');
|
|
4839
4839
|
this.selectedTab = null;
|
|
4840
|
-
while (!this.selectedTab && this.currentRoute.split('/').length >
|
|
4840
|
+
while (!this.selectedTab && this.currentRoute.split('/').length > 2) {
|
|
4841
4841
|
for (let i = 0; i < this.menuData.tabs.length; i++) {
|
|
4842
4842
|
let tab = this.menuData.tabs[i];
|
|
4843
4843
|
if (tab.link === this.currentRoute) {
|
|
@@ -5570,7 +5570,7 @@ class AuthGuard {
|
|
|
5570
5570
|
}
|
|
5571
5571
|
else {
|
|
5572
5572
|
let done = false;
|
|
5573
|
-
while (!done && pageView.split('/').length >
|
|
5573
|
+
while (!done && pageView.split('/').length > 2) {
|
|
5574
5574
|
if (!this.isLinkFakeRoute(pageView)) {
|
|
5575
5575
|
if (!user.roles.groups.some(a => a.views.some(b => b === pageView))) {
|
|
5576
5576
|
if (user.roles.groups.some(a => a.views.some(b => b.startsWith(moduleView) && !this.doesLinkHaveParameter(b) && !this.isLinkFakeRoute(b)))) {
|