tsv2-library 1.0.61-alpha.41 → 1.0.61-alpha.43
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/dist/tsv2-library.es.js
CHANGED
|
@@ -19685,7 +19685,10 @@ const checkRouteAccess = (to, from, next) => {
|
|
|
19685
19685
|
localStorage.getItem("user") ?? "{}"
|
|
19686
19686
|
);
|
|
19687
19687
|
const { hasAccess } = to.meta;
|
|
19688
|
-
|
|
19688
|
+
const isAdmin = userType === "Admin";
|
|
19689
|
+
const isHandoverConfirmation = to.path.includes("handover-confirmation");
|
|
19690
|
+
const isMyProfile = to.path.includes("my-profile");
|
|
19691
|
+
if ((isAdmin || isHandoverConfirmation || isMyProfile) && hasAccess)
|
|
19689
19692
|
next();
|
|
19690
19693
|
else
|
|
19691
19694
|
navigateToUrl("/not-found");
|
|
@@ -55404,6 +55407,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
55404
55407
|
}
|
|
55405
55408
|
);
|
|
55406
55409
|
const imagePreview = computedAsync(async () => {
|
|
55410
|
+
if (!thumbnailString.value || errorLoadImage.value) {
|
|
55411
|
+
return Placeholder;
|
|
55412
|
+
}
|
|
55407
55413
|
const preview = previewString.value || imageThumbnail.value;
|
|
55408
55414
|
if (typeof preview === "string") {
|
|
55409
55415
|
return preview.includes("http") || preview.includes("data:image/svg+xml") ? preview : await getImageURL(preview);
|