File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
git/components/OpsModal/TabDeploy Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1055,7 +1055,7 @@ export const CURRENT_PAGE_DISCARD_WARNING = (page: string) =>
10551055export const DISCARD_MESSAGE = ( ) =>
10561056 `Some changes may reappear after discarding them, these changes support new features in Appsmith. You can safely commit them to your repository.` ;
10571057export const REDEPLOY_APP_WARNING = ( ) =>
1058- "The deployed version of this app is not using the latest versions of some packages . Redeploy to apply the latest package versions to the app ." ;
1058+ "The deployed version of this app may be out of sync with what you see in edit mode . Redeploy to apply the latest state ." ;
10591059
10601060// GIT DEPLOY end
10611061
Original file line number Diff line number Diff line change @@ -147,9 +147,6 @@ function TabDeployView({
147147 ! isCommitLoading &&
148148 ! isDiscarding ;
149149
150- const shouldShowRedeploy =
151- ! isFetchStatusLoading && ! hasChangesToCommit && ! ! redeployTrigger ;
152-
153150 const isCommitting =
154151 ! ! commitButtonLoading &&
155152 ( commitRequired || showCommitButton ) &&
@@ -171,6 +168,12 @@ function TabDeployView({
171168 ( ( pullRequired && ! isConflicting ) ||
172169 ( statusBehindCount > 0 && statusIsClean ) ) ;
173170
171+ const shouldShowRedeploy =
172+ ! isFetchStatusLoading &&
173+ ! hasChangesToCommit &&
174+ ! showPullButton &&
175+ ! ! redeployTrigger ;
176+
174177 const isCommitSuccess = useMemo ( ( ) => {
175178 return hasSubmitted && ! isCommitLoading ;
176179 } , [ isCommitLoading , hasSubmitted ] ) ;
You can’t perform that action at this time.
0 commit comments