mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
vault add/edit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user