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`
|
// `is*Algorithm` decides `algorithm`'s type, which flows into `setPreference`
|
||||||
if (isForwarderIntegration(algorithm) && algorithm.forwarder === null) {
|
if (isForwarderIntegration(algorithm) && algorithm.forwarder === null) {
|
||||||
return;
|
return;
|
||||||
}
|
} else if (isEmailAlgorithm(algorithm)) {
|
||||||
if (isEmailAlgorithm(algorithm)) {
|
|
||||||
setPreference("email");
|
setPreference("email");
|
||||||
} else if (isUsernameAlgorithm(algorithm)) {
|
} else if (isUsernameAlgorithm(algorithm)) {
|
||||||
setPreference("username");
|
setPreference("username");
|
||||||
@ -288,7 +287,11 @@ export class CredentialGeneratorComponent implements OnInit, OnDestroy {
|
|||||||
// template bindings refresh immediately
|
// template bindings refresh immediately
|
||||||
this.zone.run(() => {
|
this.zone.run(() => {
|
||||||
this.algorithm$.next(algorithm);
|
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);
|
this.forwarderId$.next(forwarderNav.forwarder);
|
||||||
} else {
|
} else {
|
||||||
this.forwarderId$.next(null);
|
this.forwarderId$.next(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user