-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add 5s delay when session expiration datetime is over (#2910)
**Changes:** This PR resolves [backend.ai#3180](lablup/backend.ai#3180) Added a 5-second timeout delay before reloading the page when the login session expires in the LoginSessionExtendButton component. This ensures the page reload is properly applied after session expiration. Also added a disabled state to prevent button interaction during expiration. **Rationale:** The immediate page reload was causing issues with proper application of the reload. The timeout ensures the system has enough time to process the session expiration before triggering the reload action. The disabled state prevents users from attempting to extend an already expired session. **Impact:** Users will experience a 5-second delay between their session expiring and the page reloading, providing a more reliable session expiration behavior in both Electron and browser environments. The extend session button will be disabled during this period. **Checklist:** - [ ] Mention to the original issue - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after
- Loading branch information
Showing
3 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters