Skip to content

Commit

Permalink
AI Excerpt: disable Generate button (#32924)
Browse files Browse the repository at this point in the history
* change buttons dosposition

* changelog

* disable Generate button when state is not `init`
  • Loading branch information
retrofox authored Sep 7, 2023
1 parent ab2467a commit 19a3b81
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: enhancement

AI Excerpt: disable Generate button
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function AiPostExcerpt() {
onClick={ () => requestExcerpt() }
variant="secondary"
isBusy={ isBusy }
disabled={ isGenerateButtonDisabled }
disabled={ isGenerateButtonDisabled || requestingState !== 'init' }
>
{ __( 'Generate', 'jetpack' ) }
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
justify-content: end;
margin-bottom: 10px;
gap: 12px;
justify-content:flex-end;
justify-content:space-around;
}

0 comments on commit 19a3b81

Please sign in to comment.