mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
use router links instead of back
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { Location } from '@angular/common';
|
||||
import {
|
||||
Component,
|
||||
OnInit,
|
||||
@@ -16,8 +15,7 @@ import { FolderService } from 'jslib/abstractions/folder.service';
|
||||
export class FoldersComponent implements OnInit {
|
||||
folders: FolderView[];
|
||||
|
||||
constructor(private folderService: FolderService, private location: Location,
|
||||
private router: Router) {
|
||||
constructor(private folderService: FolderService, private router: Router) {
|
||||
}
|
||||
|
||||
async ngOnInit() {
|
||||
@@ -31,8 +29,4 @@ export class FoldersComponent implements OnInit {
|
||||
addFolder() {
|
||||
this.router.navigate(['/add-folder']);
|
||||
}
|
||||
|
||||
close() {
|
||||
this.location.back();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user