impaktapps-ui-builder 0.0.101-alpha.336 → 0.0.101-alpha.337
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.
|
@@ -10299,18 +10299,20 @@ var service = (funcParams) => {
|
|
|
10299
10299
|
}));
|
|
10300
10300
|
}
|
|
10301
10301
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10302
|
-
const
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
}
|
|
10310
|
-
|
|
10311
|
-
|
|
10302
|
+
const pathParts = funcParams.store.location.pathname.split("/");
|
|
10303
|
+
const programId = ((_a = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")) == null ? void 0 : _a.value) || "programID";
|
|
10304
|
+
if ((config2 == null ? void 0 : config2.programIdRequired) && programId) {
|
|
10305
|
+
if (pathParts.length < 2) {
|
|
10306
|
+
funcParams.store.navigate(
|
|
10307
|
+
`${programId}/${funcParams.store.location.pathname}`
|
|
10308
|
+
);
|
|
10309
|
+
} else if (pathParts[1] !== programId + "") {
|
|
10310
|
+
pathParts[1] = programId;
|
|
10311
|
+
const newPath = pathParts.slice(0, 3).join("/");
|
|
10312
|
+
funcParams.store.navigate(newPath);
|
|
10312
10313
|
}
|
|
10313
10314
|
}
|
|
10315
|
+
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10314
10316
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10315
10317
|
detail: { pageName: config2.label }
|
|
10316
10318
|
});
|