@vc-shell/create-vc-app 1.0.96 → 1.0.98
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,4 +1,16 @@
|
|
|
1
|
-
## [1.0.
|
|
1
|
+
## [1.0.98](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.97...v1.0.98) (2023-09-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## [1.0.97](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.96...v1.0.97) (2023-09-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [1.0.96](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.95...v1.0.96) (2023-08-28)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [1.0.95](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.94...v1.0.95) (2023-08-28)
|
|
2
14
|
|
|
3
15
|
|
|
4
16
|
|
|
@@ -101,7 +101,6 @@ router.beforeEach(async (to, from) => {
|
|
|
101
101
|
const { resolveBlades } = useBladeNavigation();
|
|
102
102
|
const { isAuthenticated } = useUser();
|
|
103
103
|
const pages = inject<BladePageComponent[]>("pages");
|
|
104
|
-
const resolvedBladeUrl = resolveBlades(to);
|
|
105
104
|
|
|
106
105
|
<% if(commonPages === true) { -%>
|
|
107
106
|
if (to.name !== "Login" && to.name !== "ResetPassword" && to.name !== "Invite") {
|
|
@@ -116,6 +115,7 @@ router.beforeEach(async (to, from) => {
|
|
|
116
115
|
if (!(await isAuthenticated()) && to.name !== "Login") {
|
|
117
116
|
return { name: "Login" };
|
|
118
117
|
} else if (hasAccess && to.name !== "Login") {
|
|
118
|
+
const resolvedBladeUrl = resolveBlades(to);
|
|
119
119
|
return resolvedBladeUrl ? resolvedBladeUrl : true;
|
|
120
120
|
} else if (!hasAccess) {
|
|
121
121
|
notification.error("Access restricted", {
|