File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
git/components/OpsModal/TabDeploy Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff 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+ } ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React from "react";
22import { createMessage } from "ee/constants/messages" ;
33import {
44 REDEPLOY_WARNING_MESSAGE ,
5+ REDEPLOY_DOC_URL ,
56 type RedeployTriggerValue ,
67} from "ee/constants/DeploymentConstants" ;
78import { Callout , Text } from "@appsmith/ads" ;
@@ -18,8 +19,9 @@ interface RedeployWarningProps {
1819const 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 >
You can’t perform that action at this time.
0 commit comments