mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-5357 Expiring license notification is not shown after login (#2767)
* CB-5357 resolves auth dialog on successful login (removes no license notification bug on login) * CB-5357 fix: do not show 2 notifications * CB-5357 reverts authPromise logic --------- Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
This commit is contained in:
co-authored by
Daria Marutkina
parent
364cb6e516
commit
fb9cd47bed
@@ -161,6 +161,11 @@ export class AuthenticationService extends Bootstrap {
|
||||
}
|
||||
}
|
||||
|
||||
if (this.authPromise) {
|
||||
await this.waitAuth();
|
||||
return;
|
||||
}
|
||||
|
||||
this.authPromise = this.authDialogService
|
||||
.showLoginForm(persistent, options)
|
||||
.then(async state => {
|
||||
|
||||
@@ -42,6 +42,7 @@ export const AuthDialog: DialogComponent<IAuthOptions, null> = observer(function
|
||||
payload: { providerId, configurationId, linkUser = false, accessRequest = false },
|
||||
options,
|
||||
rejectDialog,
|
||||
resolveDialog,
|
||||
}) {
|
||||
const styles = useS(style);
|
||||
const dialogData = useAuthDialogState(accessRequest, providerId, configurationId);
|
||||
@@ -89,7 +90,7 @@ export const AuthDialog: DialogComponent<IAuthOptions, null> = observer(function
|
||||
try {
|
||||
await dialogData.login(linkUser, provider, configuration);
|
||||
|
||||
rejectDialog();
|
||||
resolveDialog();
|
||||
} catch {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user