mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
feat(core-app): CB-1122 logic improvements
This commit is contained in:
+3
-5
@@ -52,17 +52,15 @@ export class SessionExpireWarningDialogService extends Bootstrap {
|
||||
|
||||
const remainingTime = new Date(sessionExpiredTime).getTime() - Date.now();
|
||||
|
||||
if (this.sessionExpireService.expired
|
||||
|| !sessionDuration
|
||||
|| sessionDuration < WARN_IN
|
||||
|| (this.dialogInternalPromise && remainingTime > WARN_IN)
|
||||
) {
|
||||
if (this.sessionExpireService.expired || !sessionDuration || sessionDuration < WARN_IN) {
|
||||
this.close();
|
||||
return;
|
||||
}
|
||||
|
||||
if (remainingTime < WARN_IN) {
|
||||
this.open();
|
||||
} else {
|
||||
this.close();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user