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:
parent
81320a0d6d
commit
db2a21a647
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
{{ "loginWithDeviceEnabledInfo" | i18n }}
|
{{ "loginWithDeviceEnabledInfo" | i18n }}
|
||||||
<a routerLink="/login">{{ "viewAllLoginOptions" | i18n }}</a>
|
<a href="#" (click)="back()">{{ "viewAllLoginOptions" | i18n }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { Location } from "@angular/common";
|
||||||
import { Component, OnDestroy, OnInit } from "@angular/core";
|
import { Component, OnDestroy, OnInit } from "@angular/core";
|
||||||
import { Router } from "@angular/router";
|
import { Router } from "@angular/router";
|
||||||
|
|
||||||
@ -46,7 +47,8 @@ export class LoginWithDeviceComponent
|
|||||||
loginService: LoginService,
|
loginService: LoginService,
|
||||||
syncService: SyncService,
|
syncService: SyncService,
|
||||||
deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction,
|
deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction,
|
||||||
authReqCryptoService: AuthRequestCryptoServiceAbstraction
|
authReqCryptoService: AuthRequestCryptoServiceAbstraction,
|
||||||
|
private location: Location
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
router,
|
router,
|
||||||
@ -71,4 +73,8 @@ export class LoginWithDeviceComponent
|
|||||||
await syncService.fullSync(true);
|
await syncService.fullSync(true);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected back() {
|
||||||
|
this.location.back();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user