fix: Adding deploy button on git deploy tab (#14597)
This commit is contained in:
parent
306b02ec6f
commit
a3cd34e9f6
|
|
@ -201,7 +201,11 @@ function Deploy() {
|
|||
}, []);
|
||||
const commitButtonDisabled = !hasChangesToCommit || !commitMessage;
|
||||
const commitButtonLoading = isCommittingInProgress;
|
||||
const commitInputDisabled = !hasChangesToCommit || isCommittingInProgress;
|
||||
const commitInputDisabled =
|
||||
!hasChangesToCommit ||
|
||||
isCommittingInProgress ||
|
||||
isCommitAndPushSuccessful ||
|
||||
isDiscarding;
|
||||
|
||||
const commitRequired =
|
||||
!!gitStatus?.modifiedPages ||
|
||||
|
|
|
|||
|
|
@ -193,6 +193,20 @@ function* connectToGitSaga(action: ConnectToGitReduxAction) {
|
|||
|
||||
const updatedPath = addBranchParam(branch);
|
||||
history.replace(updatedPath);
|
||||
|
||||
/* commit effect START */
|
||||
yield put(commitToRepoSuccess());
|
||||
const curApplication: ApplicationPayload = yield select(
|
||||
getCurrentApplication,
|
||||
);
|
||||
if (curApplication) {
|
||||
curApplication.lastDeployedAt = new Date().toISOString();
|
||||
yield put({
|
||||
type: ReduxActionTypes.FETCH_APPLICATION_SUCCESS,
|
||||
payload: curApplication,
|
||||
});
|
||||
}
|
||||
/* commit effect END */
|
||||
}
|
||||
} catch (error) {
|
||||
if (action.onErrorCallback) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user