impaktapps-ui-builder 0.0.101-alpha.123 → 0.0.101-alpha.124
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/package.json
CHANGED
|
@@ -89,24 +89,18 @@ export default (funcParams: funcParamsProps) => {
|
|
|
89
89
|
}))
|
|
90
90
|
}
|
|
91
91
|
const config = pageData?.config;
|
|
92
|
-
const pathParts = funcParams.store.location.pathname.split("/");
|
|
93
|
-
const programId = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.value || "programID";
|
|
94
|
-
if (config?.programIdRequired && programId) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
// if(config?.programIdRequired && !funcParams.store.location.pathname.includes(`ProgramId${JSON.parse(window.sessionStorage.getItem("ProgramID"))?.value}`)){
|
|
106
|
-
// funcParams.store.navigate(funcParams.store.location.pathname+`/ProgramId${JSON.parse(window.sessionStorage.getItem("ProgramID"))?.value}`)
|
|
107
|
-
// }
|
|
108
|
-
// else{
|
|
109
|
-
// funcParams.store.navigate(funcParams.store.location.pathname+`/${JSON.parse(window.sessionStorage.getItem("ProgramID"))?.value}`)
|
|
92
|
+
// const pathParts = funcParams.store.location.pathname.split("/");
|
|
93
|
+
// const programId = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.value || "programID";
|
|
94
|
+
// if (config?.programIdRequired && programId) {
|
|
95
|
+
// if (pathParts.length < 2) {
|
|
96
|
+
// funcParams.store.navigate(
|
|
97
|
+
// `${funcParams.store.location.pathname}/${programId}`
|
|
98
|
+
// );
|
|
99
|
+
// } else if(pathParts[2] !== programId+"") {
|
|
100
|
+
// pathParts[2] = programId;
|
|
101
|
+
// const newPath = pathParts.slice(0, 3).join("/");
|
|
102
|
+
// funcParams.store.navigate(newPath);
|
|
103
|
+
// }
|
|
110
104
|
// }
|
|
111
105
|
const uiSchema = pageData?.uiSchema;
|
|
112
106
|
const event = new CustomEvent('pageNameChanged', {
|