Skip to content

Commit

Permalink
CB-5357 Expiring license notification is not shown after login (#2767)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
sergeyteleshev and dariamarutkina authored Jul 14, 2024
1 parent 364cb6e commit fb9cd47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -89,7 +90,7 @@ export const AuthDialog: DialogComponent<IAuthOptions, null> = observer(function
try {
await dialogData.login(linkUser, provider, configuration);

rejectDialog();
resolveDialog();
} catch {}
}

Expand Down

0 comments on commit fb9cd47

Please sign in to comment.