Added functionality to display the current signature index in the signature counter UI in `EnvelopeViewer.razor`, including a new state variable `_currentSignatureIndex` to track the currently viewed signature. Updated the logic to fetch and set this value from the `SignatureNavState` object provided by the JavaScript runtime. Modified `pdf-viewer.js` to calculate the current signature index based on the last viewed signature ID (`_lastViewedSignatureId`) and return it as part of the `SignatureNavState`. This replaces the previously hardcoded `signed` value. These changes improve the user experience by providing a clear indication of the currently viewed signature in the navigation UI.
39 KiB
39 KiB