1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-22 11:45:59 +01:00

[PM-3210] fix: use back navigation (#5907)

This commit is contained in:
Andreas Coroiu 2023-07-27 16:38:57 +02:00 committed by GitHub
parent 81320a0d6d
commit db2a21a647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -30,7 +30,7 @@
<div class="footer">
{{ "loginWithDeviceEnabledInfo" | i18n }}
<a routerLink="/login">{{ "viewAllLoginOptions" | i18n }}</a>
<a href="#" (click)="back()">{{ "viewAllLoginOptions" | i18n }}</a>
</div>
</div>
</ng-container>

View File

@ -1,3 +1,4 @@
import { Location } from "@angular/common";
import { Component, OnDestroy, OnInit } from "@angular/core";
import { Router } from "@angular/router";
@ -46,7 +47,8 @@ export class LoginWithDeviceComponent
loginService: LoginService,
syncService: SyncService,
deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction,
authReqCryptoService: AuthRequestCryptoServiceAbstraction
authReqCryptoService: AuthRequestCryptoServiceAbstraction,
private location: Location
) {
super(
router,
@ -71,4 +73,8 @@ export class LoginWithDeviceComponent
await syncService.fullSync(true);
};
}
protected back() {
this.location.back();
}
}