Skip to content

Commit

Permalink
disabled while busy
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed May 9, 2024
1 parent e2e3ebe commit ec86533
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/dataviews/src/bulk-actions-toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function ActionTrigger( { action, onClick, isBusy } ) {
size="compact"
onClick={ onClick }
isBusy={ isBusy }
isDisabled={ isBusy }
__experimentalIsFocusable
tooltipPosition="top"
/>
);
Expand Down Expand Up @@ -142,7 +142,7 @@ function renderToolbarContent(
showTooltip
tooltipPosition="top"
label={ __( 'Cancel' ) }
isDisabled={ !! actionInProgress }
disabled={ !! actionInProgress }
onClick={ () => {
setSelection( EMPTY_ARRAY );
} }
Expand Down
15 changes: 12 additions & 3 deletions packages/editor/src/components/post-actions/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ const trashPostAction = {
<Button
variant="tertiary"
onClick={ closeModal }
isDisabled={ isBusy }
disabled={ isBusy }
__experimentalIsFocusable
>
{ __( 'Cancel' ) }
</Button>
Expand Down Expand Up @@ -179,6 +180,8 @@ const trashPostAction = {
closeModal();
} }
isBusy={ isBusy }
disabled={ isBusy }
__experimentalIsFocusable
>
{ __( 'Delete' ) }
</Button>
Expand Down Expand Up @@ -757,7 +760,8 @@ const resetTemplateAction = {
<Button
variant="tertiary"
onClick={ closeModal }
isDisabled={ isBusy }
disabled={ isBusy }
__experimentalIsFocusable
>
{ __( 'Cancel' ) }
</Button>
Expand All @@ -774,6 +778,8 @@ const resetTemplateAction = {
isBusy( false );
} }
isBusy={ isBusy }
disabled={ isBusy }
__experimentalIsFocusable
>
{ __( 'Reset' ) }
</Button>
Expand Down Expand Up @@ -840,7 +846,8 @@ const deleteTemplateAction = {
<Button
variant="tertiary"
onClick={ closeModal }
isDisabled={ isBusy }
disabled={ isBusy }
__experimentalIsFocusable
>
{ __( 'Cancel' ) }
</Button>
Expand All @@ -859,6 +866,8 @@ const deleteTemplateAction = {
closeModal();
} }
isBusy={ isBusy }
disabled={ isBusy }
__experimentalIsFocusable
>
{ __( 'Delete' ) }
</Button>
Expand Down

0 comments on commit ec86533

Please sign in to comment.