1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Implement personal item cloning capability (#1129)

* Initial pass of clone item

* Updated npm sub:pull script to include target branches

* Made requested changes

* Formatting changes

* Fixed lint warnings
This commit is contained in:
Vincent Salucci
2020-02-04 15:08:13 -06:00
committed by GitHub
parent a00fa10214
commit c57340c4f3
8 changed files with 61 additions and 11 deletions

View File

@@ -64,6 +64,16 @@ export class ViewComponent extends BaseViewComponent {
this.router.navigate(['/edit-cipher'], { queryParams: { cipherId: this.cipher.id } });
}
clone() {
super.clone();
this.router.navigate(['/clone-cipher'], {
queryParams: {
cloneMode: true,
cipherId: this.cipher.id,
},
});
}
close() {
this.location.back();
}