Skip to content

Commit

Permalink
Refactor: Enable/disable "Add" button based on selected contents
Browse files Browse the repository at this point in the history
  • Loading branch information
b-l-i-n-d committed Sep 30, 2024
1 parent 9509883 commit 89b4a4e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const H5PContentListModal = ({
onAddContent(selectedContents);
closeModal({ action: 'CONFIRM' });
}}
disabled={!selectedContents.length}
>
{__('Add', 'tutor')}
</Button>
Expand Down

0 comments on commit 89b4a4e

Please sign in to comment.