1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

vault add/edit

This commit is contained in:
Kyle Spearrin
2018-04-05 23:49:04 -04:00
parent 1d6cfb3ab6
commit 63ac79fb7b
10 changed files with 405 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
import * as template from './ciphers.component.html';
import { Location } from '@angular/common';
import {
Component,
OnInit,
@@ -21,7 +22,7 @@ import { CiphersComponent as BaseCiphersComponent } from 'jslib/angular/componen
})
export class CiphersComponent extends BaseCiphersComponent implements OnInit {
constructor(cipherService: CipherService, private route: ActivatedRoute,
private router: Router) {
private router: Router, private location: Location) {
super(cipherService);
}
@@ -44,4 +45,13 @@ export class CiphersComponent extends BaseCiphersComponent implements OnInit {
super.selectCipher(cipher);
this.router.navigate(['/view-cipher'], { queryParams: { cipherId: cipher.id } });
}
addCipher() {
super.addCipher();
this.router.navigate(['/add-cipher']);
}
back() {
this.location.back();
}
}