mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
[PM-3210] fix: use back navigation (#5907)
This commit is contained in:
parent
81320a0d6d
commit
db2a21a647
@ -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>
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user