1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-29 12:55:21 +01:00

[bug] Set full width on login (#1516)

This commit is contained in:
Addison Beck 2022-03-03 12:17:19 -05:00 committed by GitHub
parent 1076749635
commit e93c155885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -9,6 +9,7 @@ import { CryptoFunctionService } from "jslib-common/abstractions/cryptoFunction.
import { EnvironmentService } from "jslib-common/abstractions/environment.service";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { LogService } from "jslib-common/abstractions/log.service";
import { MessagingService } from "jslib-common/abstractions/messaging.service";
import { PasswordGenerationService } from "jslib-common/abstractions/passwordGeneration.service";
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
import { PolicyService } from "jslib-common/abstractions/policy.service";
@ -42,7 +43,8 @@ export class LoginComponent extends BaseLoginComponent {
private policyService: PolicyService,
logService: LogService,
ngZone: NgZone,
protected stateService: StateService
protected stateService: StateService,
private messagingService: MessagingService
) {
super(
authService,
@ -56,6 +58,9 @@ export class LoginComponent extends BaseLoginComponent {
logService,
ngZone
);
this.onSuccessfulLogin = async () => {
this.messagingService.send("setFullWidth");
};
this.onSuccessfulLoginNavigate = this.goAfterLogIn;
}

View File

@ -197,8 +197,6 @@ export class AppComponent implements OnDestroy, OnInit {
new SendOptionsPolicy(),
new ResetPasswordPolicy(),
]);
this.setFullWidth();
}
ngOnDestroy() {