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:
parent
4036480835
commit
994877c005
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user