mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
Added support for handling a locked vault
Handle unlocktimeout
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { Component, NgZone, OnDestroy, OnInit } from "@angular/core";
|
||||
import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from "@angular/forms";
|
||||
import { Router } from "@angular/router";
|
||||
import { Router, ActivatedRoute } from "@angular/router";
|
||||
import {
|
||||
BehaviorSubject,
|
||||
firstValueFrom,
|
||||
@@ -136,6 +136,7 @@ export class LockComponent implements OnInit, OnDestroy {
|
||||
private keyService: KeyService,
|
||||
private platformUtilsService: PlatformUtilsService,
|
||||
private router: Router,
|
||||
private activatedRoute: ActivatedRoute,
|
||||
private dialogService: DialogService,
|
||||
private messagingService: MessagingService,
|
||||
private biometricStateService: BiometricStateService,
|
||||
@@ -621,7 +622,10 @@ export class LockComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
// determine success route based on client type
|
||||
if (this.clientType != null) {
|
||||
if (
|
||||
this.clientType != null &&
|
||||
this.activatedRoute.snapshot.paramMap.get("disable-redirect") === null
|
||||
) {
|
||||
const successRoute = clientTypeToSuccessRouteRecord[this.clientType];
|
||||
await this.router.navigate([successRoute]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user