1
0
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:
Kyle Spearrin
2018-04-13 13:18:43 -04:00
parent 0505043e18
commit 40790790b2
8 changed files with 15 additions and 34 deletions

View File

@@ -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();
}
}