Skip to content

Commit

Permalink
kie-tools-issues#2761: [Serverless Logic Web Tools] Devmode deploymen…
Browse files Browse the repository at this point in the history
…t URL redirection (#2864)
  • Loading branch information
fantonangeli authored Jan 20, 2025
1 parent 3c891c1 commit ea7bde6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export function useDeployDropdownItems(props: Props) {
return;
}
uploadToDevModeSuccessAlert.close();
devModeReadyAlert.show({ routeUrl: devMode.endpoints!.base, filePaths: result.uploadedPaths });
devModeReadyAlert.show({ routeUrl: devMode.endpoints!.swfDevUi, filePaths: result.uploadedPaths });
window.clearInterval(fetchDevModeDeploymentTask);
}, FETCH_DEV_MODE_DEPLOYMENT_POLLING_TIME);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export function OpenShiftDeploymentDropdownItem(props: Props) {

const onDeploymentClicked = useCallback(() => {
const endpoints = buildEndpoints(props.deployment.routeUrl);
window.open(endpoints.base, "_blank");
}, [props.deployment.routeUrl]);
window.open(props.deployment.devMode ? endpoints.swfDevUi : endpoints.base, "_blank");
}, [props.deployment.devMode, props.deployment.routeUrl]);

const onRestoreClicked = useCallback(async () => {
if (isRestoring) {
Expand Down

0 comments on commit ea7bde6

Please sign in to comment.