Skip to content

Commit e4db919

Browse files
committed
Updated docs url for Redeploy App.
1 parent 0632c70 commit e4db919

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

app/client/src/ce/constants/DeploymentConstants.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ export const REDEPLOY_WARNING_MESSAGE: Record<
1313
> = {
1414
[REDEPLOY_TRIGGERS.PendingDeployment]: REDEPLOY_APP_WARNING,
1515
};
16+
17+
export const REDEPLOY_DOC_URL: Record<RedeployTriggerValue, string> = {
18+
[REDEPLOY_TRIGGERS.PendingDeployment]:
19+
"https://docs.appsmith.com/help-and-support/troubleshooting-guide/git-errors#edit-and-view-mode-out-of-sync",
20+
};

app/client/src/git/components/OpsModal/TabDeploy/RedeployWarning.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from "react";
22
import { createMessage } from "ee/constants/messages";
33
import {
44
REDEPLOY_WARNING_MESSAGE,
5+
REDEPLOY_DOC_URL,
56
type RedeployTriggerValue,
67
} from "ee/constants/DeploymentConstants";
78
import { Callout, Text } from "@appsmith/ads";
@@ -18,8 +19,9 @@ interface RedeployWarningProps {
1819
const RedeployWarning: React.FC<RedeployWarningProps> = ({
1920
redeployTrigger,
2021
}) => {
21-
const redeployDocUrl =
22-
"https://docs.appsmith.com/advanced-concepts/version-control-with-git/commit-and-push";
22+
if (!redeployTrigger) {
23+
return null;
24+
}
2325

2426
return (
2527
<Container>
@@ -30,14 +32,13 @@ const RedeployWarning: React.FC<RedeployWarningProps> = ({
3032
{
3133
children: "Learn more",
3234
endIcon: "right-arrow",
33-
to: redeployDocUrl,
35+
to: REDEPLOY_DOC_URL[redeployTrigger],
3436
target: "_blank",
3537
},
3638
]}
3739
>
3840
<Text kind="heading-xs">
39-
{redeployTrigger &&
40-
createMessage(REDEPLOY_WARNING_MESSAGE[redeployTrigger])}
41+
{createMessage(REDEPLOY_WARNING_MESSAGE[redeployTrigger])}
4142
</Text>
4243
</Callout>
4344
</Container>

0 commit comments

Comments
 (0)