fix: prevent generate button flicker during git refresh
Keep Generate enabled during changed-file refreshes Preserve existing blockers for generation and commits
This commit is contained in:
@@ -2119,7 +2119,6 @@ export const GitView: React.FC = () => {
|
|||||||
onCommit={() => handleCommit({ pushAfter: false })}
|
onCommit={() => handleCommit({ pushAfter: false })}
|
||||||
onCommitAndPush={() => handleCommit({ pushAfter: true })}
|
onCommitAndPush={() => handleCommit({ pushAfter: true })}
|
||||||
commitAction={commitAction}
|
commitAction={commitAction}
|
||||||
isBusy={isBusy}
|
|
||||||
gitmojiEnabled={settingsGitmojiEnabled}
|
gitmojiEnabled={settingsGitmojiEnabled}
|
||||||
onOpenGitmojiPicker={() => setIsGitmojiPickerOpen(true)}
|
onOpenGitmojiPicker={() => setIsGitmojiPickerOpen(true)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ interface CommitSectionProps {
|
|||||||
onCommit: () => void;
|
onCommit: () => void;
|
||||||
onCommitAndPush: () => void;
|
onCommitAndPush: () => void;
|
||||||
commitAction: CommitAction;
|
commitAction: CommitAction;
|
||||||
isBusy: boolean;
|
|
||||||
gitmojiEnabled: boolean;
|
gitmojiEnabled: boolean;
|
||||||
onOpenGitmojiPicker: () => void;
|
onOpenGitmojiPicker: () => void;
|
||||||
}
|
}
|
||||||
@@ -41,7 +40,6 @@ export const CommitSection: React.FC<CommitSectionProps> = ({
|
|||||||
onCommit,
|
onCommit,
|
||||||
onCommitAndPush,
|
onCommitAndPush,
|
||||||
commitAction,
|
commitAction,
|
||||||
isBusy,
|
|
||||||
gitmojiEnabled,
|
gitmojiEnabled,
|
||||||
onOpenGitmojiPicker,
|
onOpenGitmojiPicker,
|
||||||
}) => {
|
}) => {
|
||||||
@@ -102,8 +100,7 @@ export const CommitSection: React.FC<CommitSectionProps> = ({
|
|||||||
disabled={
|
disabled={
|
||||||
isGeneratingMessage ||
|
isGeneratingMessage ||
|
||||||
commitAction !== null ||
|
commitAction !== null ||
|
||||||
selectedCount === 0 ||
|
selectedCount === 0
|
||||||
isBusy
|
|
||||||
}
|
}
|
||||||
type="button"
|
type="button"
|
||||||
aria-label={t('gitView.commit.generateAria')}
|
aria-label={t('gitView.commit.generateAria')}
|
||||||
|
|||||||
Reference in New Issue
Block a user