1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-22 07:50:04 +02:00

fix service dropdown not displayed after navigation

This commit is contained in:
✨ Audrey ✨ 2024-10-18 13:26:08 -04:00
parent 4036480835
commit 994877c005
No known key found for this signature in database
GPG Key ID: 0CF8B4C0D9088B97

View File

@ -229,8 +229,7 @@ export class CredentialGeneratorComponent implements OnInit, OnDestroy {
// `is*Algorithm` decides `algorithm`'s type, which flows into `setPreference`
if (isForwarderIntegration(algorithm) && algorithm.forwarder === null) {
return;
}
if (isEmailAlgorithm(algorithm)) {
} else if (isEmailAlgorithm(algorithm)) {
setPreference("email");
} else if (isUsernameAlgorithm(algorithm)) {
setPreference("username");
@ -288,7 +287,11 @@ export class CredentialGeneratorComponent implements OnInit, OnDestroy {
// template bindings refresh immediately
this.zone.run(() => {
this.algorithm$.next(algorithm);
if (userNav === FORWARDER && forwarderNav !== NONE_SELECTED) {
const showForwarder = userNav === FORWARDER;
this.showForwarder$.next(showForwarder);
if (showForwarder && forwarderNav !== NONE_SELECTED) {
this.forwarderId$.next(forwarderNav.forwarder);
} else {
this.forwarderId$.next(null);