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 commitButtonDisabled = !hasChangesToCommit || !commitMessage;
|
||||||
const commitButtonLoading = isCommittingInProgress;
|
const commitButtonLoading = isCommittingInProgress;
|
||||||
const commitInputDisabled = !hasChangesToCommit || isCommittingInProgress;
|
const commitInputDisabled =
|
||||||
|
!hasChangesToCommit ||
|
||||||
|
isCommittingInProgress ||
|
||||||
|
isCommitAndPushSuccessful ||
|
||||||
|
isDiscarding;
|
||||||
|
|
||||||
const commitRequired =
|
const commitRequired =
|
||||||
!!gitStatus?.modifiedPages ||
|
!!gitStatus?.modifiedPages ||
|
||||||
|
|
|
||||||
|
|
@ -193,6 +193,20 @@ function* connectToGitSaga(action: ConnectToGitReduxAction) {
|
||||||
|
|
||||||
const updatedPath = addBranchParam(branch);
|
const updatedPath = addBranchParam(branch);
|
||||||
history.replace(updatedPath);
|
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) {
|
} catch (error) {
|
||||||
if (action.onErrorCallback) {
|
if (action.onErrorCallback) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user