@optifye/dashboard-core 6.10.3 → 6.10.4
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/index.js +8 -2
- package/dist/index.mjs +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48582,7 +48582,7 @@ var LeaderboardDetailView = React24.memo(({
|
|
|
48582
48582
|
if (shiftId !== void 0) {
|
|
48583
48583
|
contextParams.set("shift", shiftId.toString());
|
|
48584
48584
|
}
|
|
48585
|
-
contextParams.set("returnTo",
|
|
48585
|
+
contextParams.set("returnTo", "/leaderboard");
|
|
48586
48586
|
const contextParamString = contextParams.toString();
|
|
48587
48587
|
if (onWorkspaceClick) {
|
|
48588
48588
|
const combinedParams = navParams ? `${navParams}&${contextParamString}` : `?${contextParamString}`;
|
|
@@ -53205,7 +53205,13 @@ var WorkspaceHealthView = ({
|
|
|
53205
53205
|
}, [isFactoryView, loadedShiftConfig, selectedWorkspace, shiftConfigMap]);
|
|
53206
53206
|
const handleWorkspaceClick = React24.useCallback(
|
|
53207
53207
|
(workspace) => {
|
|
53208
|
-
const
|
|
53208
|
+
const params = new URLSearchParams();
|
|
53209
|
+
if (workspace.line_id) {
|
|
53210
|
+
params.set("lineId", workspace.line_id);
|
|
53211
|
+
}
|
|
53212
|
+
params.set("returnTo", "/health");
|
|
53213
|
+
const queryString = params.toString();
|
|
53214
|
+
const url = `/workspace/${workspace.workspace_id}?${queryString}`;
|
|
53209
53215
|
if (onNavigate) {
|
|
53210
53216
|
onNavigate(url);
|
|
53211
53217
|
} else {
|
package/dist/index.mjs
CHANGED
|
@@ -48553,7 +48553,7 @@ var LeaderboardDetailView = memo(({
|
|
|
48553
48553
|
if (shiftId !== void 0) {
|
|
48554
48554
|
contextParams.set("shift", shiftId.toString());
|
|
48555
48555
|
}
|
|
48556
|
-
contextParams.set("returnTo",
|
|
48556
|
+
contextParams.set("returnTo", "/leaderboard");
|
|
48557
48557
|
const contextParamString = contextParams.toString();
|
|
48558
48558
|
if (onWorkspaceClick) {
|
|
48559
48559
|
const combinedParams = navParams ? `${navParams}&${contextParamString}` : `?${contextParamString}`;
|
|
@@ -53176,7 +53176,13 @@ var WorkspaceHealthView = ({
|
|
|
53176
53176
|
}, [isFactoryView, loadedShiftConfig, selectedWorkspace, shiftConfigMap]);
|
|
53177
53177
|
const handleWorkspaceClick = useCallback(
|
|
53178
53178
|
(workspace) => {
|
|
53179
|
-
const
|
|
53179
|
+
const params = new URLSearchParams();
|
|
53180
|
+
if (workspace.line_id) {
|
|
53181
|
+
params.set("lineId", workspace.line_id);
|
|
53182
|
+
}
|
|
53183
|
+
params.set("returnTo", "/health");
|
|
53184
|
+
const queryString = params.toString();
|
|
53185
|
+
const url = `/workspace/${workspace.workspace_id}?${queryString}`;
|
|
53180
53186
|
if (onNavigate) {
|
|
53181
53187
|
onNavigate(url);
|
|
53182
53188
|
} else {
|