1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

view cipher component

This commit is contained in:
Kyle Spearrin
2018-04-05 23:09:49 -04:00
parent dd49b34024
commit 1d6cfb3ab6
7 changed files with 324 additions and 4 deletions

View File

@@ -20,7 +20,8 @@ import { CiphersComponent as BaseCiphersComponent } from 'jslib/angular/componen
template: template,
})
export class CiphersComponent extends BaseCiphersComponent implements OnInit {
constructor(cipherService: CipherService, private route: ActivatedRoute) {
constructor(cipherService: CipherService, private route: ActivatedRoute,
private router: Router) {
super(cipherService);
}
@@ -41,5 +42,6 @@ export class CiphersComponent extends BaseCiphersComponent implements OnInit {
selectCipher(cipher: CipherView) {
super.selectCipher(cipher);
this.router.navigate(['/view-cipher'], { queryParams: { cipherId: cipher.id } });
}
}