696cd1b623ca0516064388d4ed80d1dcc7d0b78e
Refactor the PDF upload button to dynamically adjust its appearance and behavior based on `_isPageReady` and `_isPdfUploadInProgress` states. Add a spinner to indicate upload progress and disable the `<InputFile>` component during uploads or when the page is not ready. Introduce `_isPdfUploadInProgress` state to prevent multiple uploads and ensure consistent UI updates. Update the `OnPdfFileSelectedAsync` method to handle this state, including a `finally` block to reset it and trigger UI updates. Consolidate redundant code for disabled states and improve conditional rendering for better maintainability. Enhance visual feedback for loading states and make minor style adjustments for consistency.
Description
No description provided
Languages
JavaScript
84.1%
C#
7.6%
HTML
3.6%
Visual Basic .NET
2.7%
CSS
1.5%
Other
0.4%